PHP Класс Papi_Admin_Columns, papi

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

Защищенные свойства (Protected)

Свойство Тип Описание
$post_type string Current post type.
$taxonomy string Current taxonomy.

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

Метод Описание
__construct ( ) The constructor.
manage_page_type_posts_columns ( array $defaults = [] ) : array Add custom table header to page or taxonomy type.
manage_page_type_posts_custom_column ( string $column_name, integer $post_id, integer $term_id = null ) Add custom table column to page or taxonomy type.
pre_get_posts ( WP_Query $query ) : WP_Query Filter posts on load if page_type query string is set.
restrict_page_types ( ) Filter page types in post type list.

Защищенные методы

Метод Описание
get_meta_type_value ( ) : string Get meta type value.
setup_actions ( ) Setup actions.
setup_filters ( ) Setup filters.
setup_globals ( ) Setup globals.

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

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

The constructor.
public __construct ( )

get_meta_type_value() защищенный Метод

Get meta type value.
protected get_meta_type_value ( ) : string
Результат string

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

Add custom table header to page or taxonomy type.
public manage_page_type_posts_columns ( array $defaults = [] ) : array
$defaults array
Результат array

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

Add custom table column to page or taxonomy type.
public manage_page_type_posts_custom_column ( string $column_name, integer $post_id, integer $term_id = null )
$column_name string
$post_id integer
$term_id integer

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

Filter posts on load if page_type query string is set.
public pre_get_posts ( WP_Query $query ) : WP_Query
$query WP_Query
Результат WP_Query

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

Filter page types in post type list.
public restrict_page_types ( )

setup_actions() защищенный Метод

Setup actions.
protected setup_actions ( )

setup_filters() защищенный Метод

Setup filters.
protected setup_filters ( )

setup_globals() защищенный Метод

Setup globals.
protected setup_globals ( )

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

$post_type защищенное свойство

Current post type.
protected string $post_type
Результат string

$taxonomy защищенное свойство

Current taxonomy.
protected string $taxonomy
Результат string