Class AdminPageFramework_PageMetaBox
Provides methods for creating meta boxes in pages added by the framework.
Abstract
Package: AdminPageFramework\Factory\PageMetaBox
Since: 3.0.0
Located at factory/page_meta_box/AdminPageFramework_PageMetaBox.php
Package: AdminPageFramework\Factory\PageMetaBox
Since: 3.0.0
Located at factory/page_meta_box/AdminPageFramework_PageMetaBox.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' )
Registers necessary hooks and internal properties. Examplesnew APF_MetaBox_For_Pages_Normal( 'apf_metabox_for_pages_normal', // meta box id __( 'Sample Meta Box For Admin Pages Inserted in Normal Area' ), // title 'apf_first_page', // page slugs 'normal', // context 'default' // priority ); include( APFDEMO_DIRNAME . '/example/APF_MetaBox_For_Pages_Advanced.php' ); new APF_MetaBox_For_Pages_Advanced( 'apf_metabox_for_pages_advanced', // meta box id __( 'Sample Meta Box For Admin Pages Inserted in Advanced Area' ), // title 'apf_first_page', // page slugs 'advanced', // context 'default' // priority ); include( APFDEMO_DIRNAME . '/example/APF_MetaBox_For_Pages_Side.php' ); new APF_MetaBox_For_Pages_Side( 'apf_metabox_for_pages_side', // meta box id __( 'Sample Meta Box For Admin Pages Inserted in Advanced Area' ), // title array( 'apf_first_page', 'apf_second_page' ), // page slugs - setting multiple slugs is possible 'side', // context 'default' // priority ); Parameters
Since
3.0.0
OverridesAdminPageFramework_MetaBox_Model::__construct |