Switch Post Status WP Registry grade B. Medium-severity findings · 1 findingWP RegistryMedium-severity findings · 1 findingOpen the reportB
Switch post status from draft to publish and back.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/xxsimoxx/switch-post-status/releases/download/1.0.3/switch-post-status-1.0.3.zipSwitch Post Status from draft to publish and back.
This plugin allows to switch post status from draft to publish and back using a link in row actions.
Configuring other actions
Use the xsxswitch_lookup filter.
Example:
add_filter ('xsxswitch_lookup', 'myprefix_custom_sps_actions');
function myprefix_custom_sps_actions($lookup) {
// Let it handle private posts and convert them to published.
$lookup['private'] = [
'dst' => 'publish',
'msg' => 'Switch to a great public post',
];
// Change the text to a custom one for draft posts.
$lookup['draft'] = [
'dst' => 'publish',
'msg' => 'My custom lovely message',
];
return $l;
}
Privacy
To help us know the number of active installations of this plugin, we collect and store anonymized data when the plugin check in for updates. The date and unique plugin identifier are stored as plain text and the requesting URL is stored as a non-reversible hashed value. This data is stored for up to 28 days.
Releases
4 releases. Each count is every asset in that release; expand a row for the breakdown.
Active-site estimate ≈30 comes from the median of recent superseded releases. Method.