PHP Класс APF_Demo_AdvancedUsage_Callback_FieldDefinition

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$sPageSlug The page slug to add the tab and form elements.
$sSectionID The section slug to add to the tab.
$sTabSlug The tab slug to add to the page.

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

Метод Описание
__construct ( $oFactory ) Sets up a form section.
replyToRedefineExampleField ( $aField ) : array Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
replyToRedefinePostTitleField ( $aField ) : array Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.

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

Метод Описание
_getPostTitles ( $sPostTypeSlug = 'post' ) : array

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

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

Sets up a form section.
public __construct ( $oFactory )

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

Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
public replyToRedefineExampleField ( $aField ) : array
Результат array

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

Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
public replyToRedefinePostTitleField ( $aField ) : array
Результат array

Описание свойств

$sPageSlug публичное свойство

The page slug to add the tab and form elements.
public $sPageSlug

$sSectionID публичное свойство

The section slug to add to the tab.
public $sSectionID

$sTabSlug публичное свойство

The tab slug to add to the page.
public $sTabSlug