Method |
Description |
|
_clear_post_type_args ( ) |
Run on WordPress's 'init' hook to register all the post types defined in classes that extend this class. |
|
_get_post_type_label ( string $post_type, string $label_type ) : string |
|
|
_get_post_type_labels ( string $post_type ) : array |
|
|
_init ( ) |
Run on WordPress's 'init' hook to register all the post types defined in classes that extend this class. |
|
_init_99 ( ) |
Clear out this data, we don't need them anymore
But do it late so that a regular 'init' can still access them, i.e. for changing labels of 'post' post type. |
|
_set_post_type_args ( string $post_type_slug, array $args ) |
Save $args for later passing to register_post_type(). |
|
_set_post_type_labels ( string $post_type, array $args ) : array |
|
|
_wp_loaded ( ) |
Add a property to post type objects so they can be self-identified. |
|
default_post_type_labels ( ) : array |
|
|
get_list ( array | string | WPLib_Query $query = [], array $args = [] ) : WPLib_Post_List_Default |
|
|
get_post ( WP_Post | object | integer | string | array | null | boolean $_post, string | boolean $post_type = false ) : null | WP_Post |
|
|
get_post_by ( string $by, integer | string $value, array $args = [] ) : WP_Post |
|
|
get_post_type_class ( string $post_type ) : string | null |
|
|
get_post_types_supporting ( string $feature ) : array |
Get a list of post types that support a specific named feature. |
|
get_posts ( WP_Query | array $args = [] ) : WP_Post[] |
Query the posts, return a post list. |
|
get_queried_post_type ( ) : false | null | string |
Return the post type of the queried object. |
|
get_query ( array $args = [] ) : WPLib_Query |
Query the posts. Equivalent to creating a new WP_Query which both instantiates and queries the DB. |
|
make_new_item ( WP_Post | integer $_post, array $args = [] ) : mixed |
Create new Instance of a Post MVI |
|
max_posts_per_page ( ) : integer |
|
|
on_load ( ) |
Run on WordPress's 'init' hook to register all the post types defined in classes that extend this class. |
|
pop_post ( ) |
|
|
post_type_classes ( ) : string[] |
|
|
push_post ( WP_Post | boolean $value = false ) |
|
|
set_max_posts_per_page ( integer $value ) |
|
|