PHP Class APF_PostType

Demonstrates the usage of Admin Page Framework. http://en.michaeluno.jp/admin-page-framework/ Copyright (c) 2013-2016 Michael Uno; Licensed GPLv2
Inheritance: extends AdminPageFramework_PostType
Show file Open project: michaeluno/admin-page-framework

Public Methods

Method Description
action_links_apf_posts ( $aActionLinks, $oPost ) * Built-in callback methods
cell_apf_posts_samplecolumn ( $sCell, $iPostID )
columns_apf_posts ( $aHeaderColumns ) * Built-in callback methods
content ( $sContent ) Modifies the output of the post content.
footer_left_APF_PostType ( $sHTML ) Inserts a custom string into the left footer.
footer_right_APF_PostType ( $sHTML ) Inserts a custom string into the left footer.
load ( ) Called when the edit.php page starts loading.
replyToSortCustomColumn ( $aVars ) Modifies the way how the sample column is sorted. This makes it sorted by post ID.
setUp ( ) Use this method to set up the post type.
sortable_columns_apf_posts ( $aSortableHeaderColumns )
start ( ) This method is called at the end of the constructor.

Private Methods

Method Description
_getLabels ( ) : array

Method Details

cell_apf_posts_samplecolumn() public method

public cell_apf_posts_samplecolumn ( $sCell, $iPostID )

columns_apf_posts() public method

* Built-in callback methods
public columns_apf_posts ( $aHeaderColumns )

content() public method

This method is called in the single page of this class post type. Alternatively, you may use the 'content_{instantiated class name}' method,
public content ( $sContent )

load() public method

Alternatively you can use the load_{post type slug} method and action hook.
public load ( )

replyToSortCustomColumn() public method

Modifies the way how the sample column is sorted. This makes it sorted by post ID.
See also: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
public replyToSortCustomColumn ( $aVars )

setUp() public method

ALternatevely, you may use the set_up_{instantiated class name} method, which also is called at the end of the constructor.
public setUp ( )

sortable_columns_apf_posts() public method

public sortable_columns_apf_posts ( $aSortableHeaderColumns )

start() public method

ALternatevely, you may use the start_{instantiated class name} method, which also is called at the end of the constructor.
public start ( )