Class AdminPageFramework_UserMeta_Controller
Provides methods to manipulate the factory behaviour.
Abstract
Package: AdminPageFramework\Factory\UserMeta
Since: 3.5.0
Located at factory/user_meta/AdminPageFramework_UserMeta_Controller.php
Package: AdminPageFramework\Factory\UserMeta
Since: 3.5.0
Located at factory/user_meta/AdminPageFramework_UserMeta_Controller.php
Methods summary
public
|
#
setUp( )
The set up method. Examplepublic function setUp() { $this->addSettingFields( array( 'field_id' => 'text_field', 'type' => 'text', 'title' => __( 'Text', 'admin-page-framework-demo' ), 'repeatable' => true, 'sortable' => true, 'description' => 'Type something here.', ), array( 'field_id' => 'text_area', 'type' => 'textarea', 'title' => __( 'Text Area', 'admin-page-framework-demo' ), 'default' => 'Hi there!', ), array( 'field_id' => 'radio_buttons', 'type' => 'radio', 'title' => __( 'Radio', 'admin-page-framework-demo' ), 'label' => array( 'a' => 'A', 'b' => 'B', 'c' => 'C', ), 'default' => 'a', ) ); }Since
3.5.0
Remark
should be overridden by the user definition class.
Overrides |