PHP Класс Inpsyde\MultilingualPress\Common\Admin\SitesListTableColumn

С версии: 3.0.0
Показать файл Открыть проект

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

Метод Описание
__construct ( string $id, string $name, callable $render_callback, callable $add_callback = null ) Constructor. Sets up the properties.
add ( array $columns ) : array Adds the column.
register ( ) : void Registers the column methods by using the appropriate WordPress hooks.
render_content ( string $id, integer $site_id ) : boolean Renders the column content.

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

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

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $id, string $name, callable $render_callback, callable $add_callback = null )
$id string Column ID.
$name string Column name.
$render_callback callable Callback for rendering the column content.
$add_callback callable Optional. Callback to handle adding the column. Defaults to null.

add() публичный метод

Adds the column.
С версии: 3.0.0
public add ( array $columns ) : array
$columns array The current columns.
Результат array All columns.

register() публичный метод

Registers the column methods by using the appropriate WordPress hooks.
С версии: 3.0.0
public register ( ) : void
Результат void

render_content() публичный метод

Renders the column content.
С версии: 3.0.0
public render_content ( string $id, integer $site_id ) : boolean
$id string Column ID.
$site_id integer Site ID.
Результат boolean Whether or not the content was rendered successfully.