2017 © Pedro Peláez
 

wordpress-plugin wp-custom-post-status

WordPress plugin that allows you to easily create custom post statuses for one or more custom post types.

image

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

The README.md

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

  1. __$post_status__ (string) Required. Machine name of the post status; for example, "archive"
  2. __$post_types__ (array) Optional. Array of post types to apply the post status to. Default: ["post"]
  3. __$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);

The Versions

17/02 2018

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

 

07/08 2014

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

 

07/08 2014

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