LLMS_Meta_Box_Certificate::get_fields()

Builds array of metabox options.


Description Description

Array is called in output method to display options. Appropriate fields are generated based on type.


Return Return

(array) [md array of metabox fields]


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.certificate.php

	public function get_fields() {

		 return array(
			array(
				'title' 	=> 'General',
				'fields' 	=> array(
					array(
						'label' 	=> __( 'Certificate Title', 'lifterlms' ),
						'desc' 		=> __( 'Enter a title for your certificate. EG: Certificate of Completion', 'lifterlms' ),
						'id' 		=> $this->prefix . 'certificate_title',
						'type'  	=> 'text',
						'section' 	=> 'certificate_meta_box',
						'class' 	=> 'code input-full',
						'desc_class' => 'd-all',
						'group' 	=> '',
						'value' 	=> '',
					),
					array(
						'label'  	=> __( 'Background Image', 'lifterlms' ),
						'desc'  	=> __( 'Select an Image to use for the certificate.', 'lifterlms' ),
						'id'    	=> $this->prefix . 'certificate_image',
						'type'  	=> 'image',
						'section' 	=> 'certificate_meta_box',
						'class' 	=> 'certificate',
						'desc_class' => 'd-all',
						'group' 	=> '',
						'value' 	=> '',
					),
				),
			),
		 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.