Class AdminPageFramework_MetaBox
Provides methods for creating meta boxes for post types.
Abstract
Package: AdminPageFramework\Factory\MetaBox
Since: 2.0.0
Located at factory/meta_box/AdminPageFramework_MetaBox.php
Package: AdminPageFramework\Factory\MetaBox
Since: 2.0.0
Located at factory/meta_box/AdminPageFramework_MetaBox.php
Methods summary
public
|
#
__construct( string $sMetaBoxID, string $sTitle, string|array $asPostTypeOrScreenID = array( 'post' ), string $sContext = 'normal', string $sPriority = 'default', string $sCapability = 'edit_posts', string $sTextDomain = 'admin-page-framework' )
Constructs the class object instance of AdminPageFramework_MetaBox. Sets up properties and hooks. Examplenew APF_MetaBox_BuiltinFieldTypes( 'sample_custom_meta_box', // meta box ID __( 'Demo Meta Box with Built-in Field Types', 'admin-page-framework-demo' ), // title array( 'apf_posts' ), // post type slugs: post, page, etc. 'normal', // context (what kind of metabox this is) 'default' // priority ); Parameters
Since
2.0.0
SeeOverridesAdminPageFramework_MetaBox_Model::__construct |