Свойство | Тип | Описание | |
---|---|---|---|
$per_page | integer | How many entries per page will be displayed. | |
$settings | Settings | Current settings. |
Метод | Описание | |
---|---|---|
__construct ( Settings $settings ) | Constructor. | |
column_cb ( WP_Post $item ) : string | Required IF using checkboxes or bulk actions. The 'cb' column gets special treatment when columns are processed. It ALWAYS needs to have it's own method. | |
column_default ( mixed $item, string $column_name ) : string | Set column defaults. | |
column_title ( WP_Post $item ) : string | This method is responsible for what is rendered in any column with a name/slug of 'title'. | |
get_bulk_actions ( ) : array | Get bulk actions. | |
get_columns ( ) : array | Dictates the table columns and titles. The 'cb' column is special and, if existant, there needs to be a column_cb method defined. | |
prepare_items ( ) | Prepare items for the table. |
Метод | Описание | |
---|---|---|
date_range_filter_field ( ) | Display datepickers to filter by date range | |
extra_tablenav ( string $which ) | Display extra filtering options. | |
get_date_from_filter ( ) : string | Get the current date from filter value. | |
get_date_to_filter ( ) : string | Get the current date to filter value. | |
get_publish_status_filter ( ) : string | Get the current publish status filter value. | |
get_search_filter ( ) : string | Get the current search filter value. | |
publish_status_filter_field ( ) | Display a dropdown to filter by publish state. |
Метод | Описание | |
---|---|---|
get_status_for ( WP_Post $post ) : string | Get the Apple News status. | |
get_synced_status_for ( WP_Post $post ) : string | Get the synced status. | |
get_updated_at ( WP_Post $post ) : string | Get the updated at time. |
public __construct ( Settings $settings ) | ||
$settings | Settings |
public column_title ( WP_Post $item ) : string | ||
$item | WP_Post | |
Результат | string |
protected date_range_filter_field ( ) |
public get_bulk_actions ( ) : array | ||
Результат | array |
public get_columns ( ) : array | ||
Результат | array | An array where the key is the column slug and the value is the title text. |
protected get_date_from_filter ( ) : string | ||
Результат | string |
protected get_date_to_filter ( ) : string | ||
Результат | string |
protected get_publish_status_filter ( ) : string | ||
Результат | string |
protected get_search_filter ( ) : string | ||
Результат | string |
protected publish_status_filter_field ( ) |
public int $per_page | ||
Результат | integer |