BEA Post status admin WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Handle the post status on the admin
★ 5stars
2.0.4latest · 4 years ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/beapi/bea-post-status-admin/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Registering post_status on WordPress does not display an interface for it. With this plugin you can display the new Post status to the admin interface and interact with it !
Usage
// Add post status
add_action( 'bea/psa/register', 'init_post_status' );
function init_post_status( $class ) {
register_post_status( 'refused', array(
'label' => 'Refused',
'public' => true,
'exclude_from_search' => true,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Refused <span class="count">(%s)</span>', 'Refused <span class="count">(%s)</span>' ),
) );
// Add the post_status admin interface
/**
Here you can add the post status to a post type and choose the submit button text if you choose the
post_status on the select.
*/
$class::register_status( 'refused', array( "post" ), 'Refuse the post' );
}```
Caution
==
In this plugin version, there is no checks on the user role or capabilities, so this just add the interface and that's it !Releases
3 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.