Class AdminPageFramework_PostType
Provides methods for registering custom post types.
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_{instantiated class name} – triggered at the end of the class constructor. This receives the class object in the first parameter.
- set_up_{instantiated class name} – triggered after the setUp() method is called. This receives the class object in the first parameter.
Methods and Filter Hooks
- cell_{post type slug}_{column key} – receives the output string for the listing table of the custom post type's post. The first parameter: output string. The second parameter: the post ID.
- columns_{post type slug} – receives the array containing the header columns for the listing table of the custom post type's post. The first parameter: the header columns container array.
- sortable_columns_{post type slug} – receives the array containing the sortable header column array for the listing table of the custom post type's post. The first parameter: the sortable header columns container array.
Remarks
The slugs must not contain a dot(.) or a hyphen(-) since it is used in the callback method name.
- AdminPageFramework_Factory_Router
-
AdminPageFramework_Factory_Model
-
AdminPageFramework_Factory_View
-
AdminPageFramework_Factory_Controller
-
AdminPageFramework_Factory
-
AdminPageFramework_PostType_Router
-
AdminPageFramework_PostType_Model
-
AdminPageFramework_PostType_View
-
AdminPageFramework_PostType_Controller
-
AdminPageFramework_PostType
Package: AdminPageFramework\PostType
Since: 2.0.0
Located at factory/AdminPageFramework_PostType/AdminPageFramework_PostType.php
Methods summary
public
|
#
__construct( string $sPostType, array $aArgs = array(), string $sCallerPath = null, string $sTextDomain = 'admin-page-framework' )
|
Methods inherited from AdminPageFramework_PostType_Controller
addTaxonomy()
,
enqueueScript()
,
enqueueScripts()
,
enqueueStyle()
,
enqueueStyles()
,
setAuthorTableFilter()
,
setAutoSave()
,
setFooterInfoLeft()
,
setFooterInfoRight()
,
setPostTypeArgs()
,
setUp()
Methods inherited from AdminPageFramework_PostType_Model
Methods inherited from AdminPageFramework_Factory_Controller
addHelpText()
,
addSettingField()
,
addSettingFields()
,
addSettingSection()
,
addSettingSections()
,
hasSettingNotice()
,
setFieldErrors()
,
setSettingNotice()
,
start()
Methods inherited from AdminPageFramework_Factory_View
_replyToGetFieldOutput()
,
_replyToPrintSettingNotice()
Methods inherited from AdminPageFramework_Factory_Model
_getFieldErrors()
,
_isValidationErrors()
,
_loadDefaultFieldTypeDefinitions()
,
_registerFields()
,
_replyToDeleteFieldErrors()
,
_replyToSaveFieldErrors()
,
_replyToSaveNotices()
,
_setUp()
Methods inherited from AdminPageFramework_Factory_Router
__call()
,
__get()
,
_getFormInstance()
,
_getHeadTagInstance()
,
_getHelpPaneInstance()
,
_getLinkInstancce()
,
_getPageLoadInfoInstance()
,
_isInstantiatable()
,
_replyToLoadComponents()
Magic methods summary
Properties summary
Properties inherited from AdminPageFramework_Factory_Router
$oProp