Свойство | Type | Description | |
---|---|---|---|
$post_type | string | Current post type. | |
$taxonomy | string | Current taxonomy. |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
get_meta_type_value ( ) : string | Get meta type value. | |
setup_actions ( ) | Setup actions. | |
setup_filters ( ) | Setup filters. | |
setup_globals ( ) | Setup globals. |
protected get_meta_type_value ( ) : string | ||
Résultat | string |
public manage_page_type_posts_columns ( array $defaults = [] ) : array | ||
$defaults | array | |
Résultat | array |
public pre_get_posts ( WP_Query $query ) : WP_Query | ||
$query | WP_Query | |
Résultat | WP_Query |
public restrict_page_types ( ) |