2017 © Pedro Peláez
 

library wp-extended-post-status

Extended Post Status for WordPress

image

frozzare/wp-extended-post-status

Extended Post Status for WordPress

  • Tuesday, February 21, 2017
  • by fredrikforsmo
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,075 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

Extended Post Status

Build Status No Maintenance Intended, (*1)

Requires PHP 5.5.9, (*2)

A library which provides extended functionality to WordPress post type statuses., (*3)

Installation

composer require frozzare/wp-extended-post-status

Example

<?php

// Register `old` status.
register_extended_post_status( 'old', [], [
  'singular' => 'Old'
] );

// Register `obsolete` status.
register_extended_post_status( 'obsolete', [
  // Array or string of post types where post status should be registered
  'post_type' => ['post', 'page']
], [
  'singular' => 'Obsolete'
] );

Documentation

function register_extended_post_status( string $post_status, array $args = [], array $names = [] )
  • $post_status is the name of the post status.
  • $args is a array of arguments for this post status, the same as for register_post_status plus post_type argument, which should be array or string of post types where post status should be registered ('any' can also be passed).
  • $names is a array of singular and plural that is used as names for label_count if empty.

Differences from register_post_status arguments:, (*4)

  • public has true as default value instead of false
  • show_in_admin_status_list has true as default value instead of false

License

MIT © Fredrik Forsmo, (*5)

The Versions

21/02 2017

dev-master

9999999-dev https://github.com/frozzare/wp-extended-post-status

Extended Post Status for WordPress

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress status post extended

11/10 2016

1.1.2

1.1.2.0 https://github.com/frozzare/wp-extended-post-status

Extended Post Status for WordPress

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress status post extended

03/09 2016

1.1.1

1.1.1.0 https://github.com/frozzare/wp-extended-post-status

Extended Post Status for WordPress

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress status post extended

25/07 2016

1.1.0

1.1.0.0 https://github.com/frozzare/wp-extended-post-status

Extended Post Status for WordPress

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress status post extended

24/07 2016

1.0.0

1.0.0.0 https://github.com/frozzare/wp-extended-post-status

Extended Post Status for WordPress

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress status post extended