WP Manifestindependent plugin directory
manifest / content / switch-post-status

Switch Post Status

Switch post status from draft to publish and back.

by Gieffe edizioni srl · github.com/xxsimoxx/switch-post-status · website

0stars
260release downloads
≈30active sites
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/xxsimoxx/switch-post-status/releases/download/1.0.3/switch-post-status-1.0.3.zip

Readme

Switch 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.

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.3 Dec 4, 2024 switch-post-status-1.0.3.zip 50
1.0.2 Aug 31, 2022 switch-post-status-1.0.2.zip 165
1.0.1 Jun 6, 2022 switch-post-status-1.0.1.zip 30
1.0.0 Dec 6, 2021 switch-post-status-1.0.0.zip 15

Active-site estimate ≈30 comes from the median of recent superseded releases. Method.