Archive | /wp-includes/post.php RSS feed for this section

get_private_posts_cap_sql

Retrieve the private post SQL based on capability.This function provides a standardized way to appropriately select on the post_status of a post type. The function will return a piece of SQL code that can be added to a WHERE clause; this SQL is constructed to allow all published posts, and all private posts to which the user has access.

1647

Continue reading

get_post_type_labels

Builds an object with all post type labels out of a post type objectAccepted keys of the label array in the post type object:

1631

Continue reading

get_post_type_capabilities

Builds an object with all post type capabilities out of a post type objectPost type capabilities use the ‘capability_type’ argument as a base, if the capability is not set in the ‘capabilities’ argument array or if the ‘capabilities’ argument is not supplied.

1628

Continue reading