rockschtar/wordpress-custompoststatus

Library that implements custom post statuses

Installs: 1 173

Dependents: 0

Suggesters: 0

Security: 0

Type:wordpress-muplugin

1.1.2 2018-09-06 13:47 UTC

This package is auto-updated.

Last update: 2022-06-06 22:51:40 UTC


README

Library that implements custom post status in WordPress.

Prerequisites

Usage

plugin.php

register_custom_post_status(
    'my-custom-post-status',
    array('my-custom-post-type'),
    array('label' => __('Some label', 'textdomain'),
        'public' => false,
        'private' => false,
        'internal' => false,
        'exclude_from_search' => true,
        'show_in_admin_all_list' => true,
        'show_in_admin_status_list' => true)
);