Class AdminPageFramework_MetaBox_Page
Provides methods for creating meta boxes in pages added by the framework.
Hooks
The class automatically creates WordPress action and filter hooks associated with the class methods. The class methods corresponding to the name of the below actions and filters can be extended to modify the page output. Those methods are the callbacks of the filters and actions.
Methods and Action Hooks
- start_{extended class name} – triggered at the end of the class constructor.
- do_{extended class name} – triggered when the meta box gets rendered.
Methods and Filter Hooks
- field_types_{extended class name} – receives the field type definition array. The first parameter: the field type definition array.
- field_{extended class name}_{field ID} – receives the form input field output of the given input field ID. The first parameter: output string. The second parameter: the array of option.
- content_{extended class name} – receives the entire output of the meta box. The first parameter: the output HTML string.
- style_common_{extended class name} – receives the output of the base CSS rules applied to the pages of the associated post types with the meta box.
- style_ie_common_{extended class name} – receives the output of the base CSS rules for Internet Explorer applied to the pages of the associated post types with the meta box.
- style_{extended class name} – receives the output of the CSS rules applied to the pages of the associated post types with the meta box.
- style_ie_{extended class name} – receives the output of the CSS rules for Internet Explorer applied to the pages of the associated post types with the meta box.
- script_common_{extended class name} – receives the output of the base JavaScript scripts applied to the pages of the associated post types with the meta box.
- script_{extended class name} – receives the output of the JavaScript scripts applied to the pages of the associated post types with the meta box.
- validation_{extended class name} – receives the form submission values as array. The first parameter: submitted input array. The second parameter: the original array stored in the database.
- AdminPageFramework_MetaBox_Base
-
AdminPageFramework_MetaBox_Page
Package: AdminPageFramework\MetaBox
Since: 3.0.0
Use: AdminPageFramework_Utility
Use: AdminPageFramework_Message
Use: AdminPageFramework_Debug
Use: AdminPageFramework_Property_Page
Located at meta_box/AdminPageFramework_MetaBox_Page.php
Methods summary
public
|
#
__construct( string $sMetaBoxID, string $sTitle, array|string $asPageSlugs = array(), string $sContext = 'normal', string $sPriority = 'default', string $sCapability = 'manage_options', string $sTextDomain = 'admin-page-framework' )
|
public
|
#
enqueueStyles( mixed $aSRCs, mixed $sPageSlug = '', mixed $sTabSlug = '', mixed $aCustomArgs = array() )
|
public
string
|
#
enqueueStyle( string $sSRC, string $sPageSlug = '', string $sTabSlug = '', array $aCustomArgs = array() )
|
public
|
#
enqueueScripts( mixed $aSRCs, mixed $sPageSlug = '', mixed $sTabSlug = '', mixed $aCustomArgs = array() )
|
public
string
|
#
enqueueScript( string $sSRC, string $sPageSlug = '', string $sTabSlug = '', array $aCustomArgs = array() )
|
public
|
#
_replyToFilterPageOptions( array $aPageOptions )
|
Methods inherited from AdminPageFramework_MetaBox_Base
__call()
,
_isInThePage()
,
_loadDefaultFieldTypeDefinitions()
,
_registerFields()
,
_replyToAddMetaBox()
,
_replyToDetermineToLoad()
,
_replyToGetFieldOutput()
,
_replyToGetSectionHeaderOutput()
,
_replyToPrintMetaBoxContents()
,
_replyToRegisterFormElements()
,
_replyToSaveMetaBoxFields()
,
addHelpText()
,
addSettingField()
,
addSettingFields()
,
addSettingSection()
,
addSettingSections()
,
getInputArray()
,
getSavedMetaArray()
,
setOptionArray()
,
setUp()
Magic methods summary
Properties summary
Properties inherited from AdminPageFramework_MetaBox_Base
$_sFieldsType
,
$_sTargetSectionTabSlug
,
$oDebug
,
$oHeadTag
,
$oMsg
,
$oUtil