wordpress-plugin wp-custom-post-status
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.
jenwachter/wp-custom-post-status
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.
- Saturday, February 17, 2018
- by jenwachter
- Repository
- 3 Watchers
- 20 Stars
- 451 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 6 Forks
- 3 Open issues
- 3 Versions
- 0 % Grown
Custom Post Status
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types., (*1)
Usage
new CustomPostStatus($post_status, $post_types, $args);
Parameters
- __$post_status__ (string) Required. Machine name of the post status; for example, "archive"
- __$post_types__ (array) Optional. Array of post types to apply the post status to. Default: ["post"]
- __$args__ (array) Optional. Array of arguments. All arguments from register_post_status plus:
- __applied_label__ (string) Optional. Status label used when the user has applied this post status (for example, "Archived"). Default: $args["label"] || $post_status
Example
Create an "archive" post status., (*2)
$post_types = array("post", "book");
$args = array(
"applied_label" => "Archived",
"label" => "Archive"
);
new CustomPostStatus("archive", $post_types, $args);
dev-master
9999999-dev
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.
Sources
Download
MIT
The Requires
dev-develop
dev-develop
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.
Sources
Download
The Requires
v1.0
1.0.0.0
WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.
Sources
Download
The Requires