Documentation

All the information you need in one place

Can I customize the available post statuses?

Absolutely. By default, Nelio Content exposes the following post statuses for all its managed post types, which correspond to WordPress’ default statuses:

  • Draft
  • Pending Review
  • Scheduled
  • Published

If you want to use a different set of statuses for a given post type, you can do so by filtering them with Nelio Content’s nelio_content_post_statuses filter. For instance, imagine you have a new blog post status called “In progress” (in-progress) that tells an editor that the author of a given post is working on it. Even though this new status has been probably registered using register_post_status, it won’t be available in Nelio Content until you add it as follows:

add_filter(
  'nelio_content_post_statuses',
  function ( $statuses, $post_type ) {
    if ( 'post' !== $post_type ) {
      return $statuses;
    }
    $statuses[] = array(
      'slug'   => 'in-progress',
      'name'   => 'In Progress',
      'icon'   => 'format-status',
      'colors' => array(
        'main'       => '#f9d510',
        'background' => '#fffdf1',
      ),
    );
    return $statuses;
  },
  10,
  2
);

Status Format

It’s important to notice that each status in the $statuses array must be an array with the following keys and value types:

  • slug (string) Required. Internal name of the status.
  • name (string) Required. User-friendly name of the status that’ll be used in the UI.
  • icon (string) Optional. The name of a dashicon.
  • colors (array) Optional. List of colors that will be used in the editorial calendar. When set, the expected keys/values are:
    • main (string) Optional. Top border color of the post’s container.
    • background (string) Optional. Background color of the post’s container.
Person writing a new WordPress post on a MacBook

Looking for popups?

We have the best plugin to create popups for WordPress in minutes.

Request Customized Enterprise Pricing

10
200000

With your express consent, we handle the information provided for the purpose of contacting you and until you ask us to delete it.

70% OF YOUR VISITORS DO EXACTLY WHAT
YOU JUST DID AND NEVER COME BACK!

KEEP THEM
ON YOUR SITE
LONGER WITH
NELIO POPUPS

Claim Your Discount Now

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

YOUR COOKIE SETTINGS


This site uses proprietary operational cookies that have a purely functional purpose and third-party cookies that help us understand how visitors interact with the site by collecting and presenting information anonymously. To get more information about these cookies and the processing of your personal data, check our Privacy & Cookie Policy. Do you accept these cookies and the processing of personal data involved?


If you don’t, you can reject non-operational cookies and continue browsing this site by clicking here.