PHP Класс APF_PostType

Demonstrates the usage of Admin Page Framework. http://en.michaeluno.jp/admin-page-framework/ Copyright (c) 2013-2016 Michael Uno; Licensed GPLv2
Наследование: extends AdminPageFramework_PostType
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
_getLabels ( ) : array

Описание методов

cell_apf_posts_samplecolumn() публичный Метод

public cell_apf_posts_samplecolumn ( $sCell, $iPostID )

columns_apf_posts() публичный Метод

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

content() публичный Метод

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() публичный Метод

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

replyToSortCustomColumn() публичный Метод

Modifies the way how the sample column is sorted. This makes it sorted by post ID.
См. также: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
public replyToSortCustomColumn ( $aVars )

setUp() публичный Метод

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 sortable_columns_apf_posts ( $aSortableHeaderColumns )

start() публичный Метод

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