Admin Page Framework Documentation
  • Package
  • Class
  • Tree

Packages

  • AdminPageFramework
    • AdminPage
    • Factory
    • FieldType
    • MetaBox
    • NetworkAdmin
    • PageMetaBox
    • PostType
    • TaxonomyField
    • Widget

Classes

  • AdminPageFramework_PostType
  • AdminPageFramework_PostType_Controller
  • AdminPageFramework_PostType_View

Class AdminPageFramework_PostType_Documentation

Provides an abstract base class to create custom post types with some additional features.

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.

Abstract
Package: AdminPageFramework\PostType
Since: 3.3.0
Heading: Post Type
Located at _document/AdminPageFramework_PostType_Documentation.php
Admin Page Framework Documentation generated by ApiGen 2.8.0