All Projects β†’ imath β†’ Wp Statuses

imath / Wp Statuses

Licence: gpl-2.0
WordPress plugin to ease Custom Post Statuses integration

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wp Statuses

Mcstatus
πŸ’‘ Minecraft services status checker
Stars: ✭ 111 (-11.2%)
Mutual labels:  status
Deployments
❗️GitHub Action for working painlessly with deployment statuses
Stars: ✭ 115 (-8%)
Mutual labels:  status
Magic Fields 2
Magic Fields 2.X
Stars: ✭ 120 (-4%)
Mutual labels:  wordpress-plugin
Mailchimp For Wordpress
The #1 Mailchimp plugin for WordPress
Stars: ✭ 111 (-11.2%)
Mutual labels:  wordpress-plugin
Piklist
The most powerful framework available for WordPress.
Stars: ✭ 114 (-8.8%)
Mutual labels:  wordpress-plugin
Refocus
The Go-To Platform for Visualizing Service Health
Stars: ✭ 117 (-6.4%)
Mutual labels:  status
S3 Uploads
The WordPress Plugin to Store Uploads on Amazon S3
Stars: ✭ 1,573 (+1158.4%)
Mutual labels:  wordpress-plugin
Sportspress
An open source league statistics plugin for WordPress created by ThemeBoy.
Stars: ✭ 124 (-0.8%)
Mutual labels:  wordpress-plugin
Wp Postratings
Adds an AJAX rating system for your WordPress blog's post/page.
Stars: ✭ 115 (-8%)
Mutual labels:  wordpress-plugin
Wp Graphql Yoast Seo
This is an extension to the WPGraphQL plugin for Yoast SEO
Stars: ✭ 120 (-4%)
Mutual labels:  wordpress-plugin
Flutter Status Alert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow.
Stars: ✭ 111 (-11.2%)
Mutual labels:  status
Acf Codifier
A wrapper class to help write more readable ACF field declarations.
Stars: ✭ 114 (-8.8%)
Mutual labels:  wordpress-plugin
Wp Gfm
WordPress Plugin for PHP-Markdown and GitHub Flavored Markdown
Stars: ✭ 117 (-6.4%)
Mutual labels:  wordpress-plugin
Repostatus.org
A standard to easily communicate to humans and machines the development/support and usability status of software repositories/projects.
Stars: ✭ 111 (-11.2%)
Mutual labels:  status
Wp Pagenavi
Adds a more advanced paging navigation interface to your WordPress blog.
Stars: ✭ 121 (-3.2%)
Mutual labels:  wordpress-plugin
Wp Cache Remember
Helper for the WordPress object cache and transients.
Stars: ✭ 111 (-11.2%)
Mutual labels:  wordpress-plugin
Regenerate Thumbnails
WordPress plugin for regenerating thumbnails of uploaded images. Over 1 million active users and counting.
Stars: ✭ 115 (-8%)
Mutual labels:  wordpress-plugin
Wponion
~ Lightweight, Flexible & Rapid WP Development Framework ~
Stars: ✭ 125 (+0%)
Mutual labels:  wordpress-plugin
Antispam Bee
β€ž... another popular solution to fight spam is Antispam Beeβ€œ – Matt Mullenweg, Q&A WordCamp Europe 2014
Stars: ✭ 124 (-0.8%)
Mutual labels:  wordpress-plugin
Wordpress Activitypub
ActivityPub for WordPress
Stars: ✭ 118 (-5.6%)
Mutual labels:  wordpress-plugin

WP Statuses

Whether you are using the Classic editor or the Block Editor of WordPress, WP Statuses brings an API to control the post types your custom Post Status will be applied to. It also adapts the various WordPress Administration UIs to let you manage all the available statuses for you post (including the custom ones of course!).

Below are screenshots of how it looks into WordPress editors.

Built in statuses in the Publishing Metabox Block Editor
Classic Editor Block Editor

This is a safely way to wait until the WordPress trac ticket #12706 and the Gutenberg GitHub issue #3144 are fixed.

PS: The Password protected visibility option is now included into the statuses dropdowns and labels for Private and Published has been renamed respectively to Privately published and Publicly published.

Custom statuses for builtin Post Types

add_filter( 'wp_statuses_use_custom_status', '__return_true' );

Using the above filter will demonstrate how it is possible to add custom statuses for WordPress builtin Post Types.

  • A new restricted status for the page's post type. Pages using this status will need the user to be logged in to view their content.
  • A new archive status for the post's post type. Posts using this status will be removed from front-end loops and only viewable from the Archived view of the Posts Administration screen.

Custom statuses for Custom Post Types

In this gist a new Post Type named "ticket" is registered along with custom statuses. It's a tiny use case showing how you can with less than 150 lines begin to build an Issue reporting system. The ticket's post type has 5 statuses:

  • The WordPress builtin Draft and Pending statuses,
  • Three custom statuses: assigned, resolved & invalid, as shown below.

Custom statuses in the Publishing Metabox

WP Statuses also takes care of the Bulk Edit and Quick Edit actions of the Post types administration screens. Below is a screen capture of the Quick Edit form for an item of the ticket's post type.

Quick edit

Registering a custom status

To register a custom status and make it appear into the Post Type's UIs, you will use the WordPress' register_post_status() function making sure to add these WP Statuses specific arguments. Below is the list of them.

Type Name Description
Array post_type The list of post type names the status should be applied to
bool show_in_metabox_dropdown Whether to show the status in the Publishing Metabox
bool show_in_inline_dropdown Whether to show the status in the Bulk Edit and Quick Edit forms
Array labels An associative array containing the labels for the two previous contexts. If there are not defined, The value of the label argument of the register_post_status() function will be used. Keys are metabox_dropdown for the Publishing Metabox and inline_dropdown for Bulk/Quick Edit forms
String dashicon The dachicon's name

For example, to add an archive custom status to Posts, you can use the WordPress function this way:

register_post_status( 'archive', array(
		/* WordPress built in arguments. */
		'label'                       => __( 'Archive', 'wp-statuses' ),
		'label_count'                 => _n_noop( 'Archived <span class="count">(%s)</span>', 'Archived <span class="count">(%s)</span>', 'wp-statuses' ),
		'public'                      => false,
		'show_in_admin_all_list'      => false,
		'show_in_admin_status_list'   => true,

		/* WP Statuses specific arguments. */
		'post_type'                   => array( 'post' ), // Only for posts!
		'show_in_metabox_dropdown'    => true,
		'show_in_inline_dropdown'     => true,
		'show_in_press_this_dropdown' => true,
		'labels'                      => array(
			'metabox_dropdown' => __( 'Archived',        'wp-statuses' ),
			'inline_dropdown'  => __( 'Archived',        'wp-statuses' ),
		),
		'dashicon'                    => 'dashicons-archive',
	) );

Configuration needed

  • WordPress 5.0

Installation

Before activating the plugin, make sure all the files of the plugin are located in /wp-content/plugins/wp-statuses folder.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].