PHP 클래스 Inpsyde\MultilingualPress\Common\Admin\SitesListTableColumn

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__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.