這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Confirm Publishing Actions

描述

Confirm Publishing Actions is a WordPress plugin that prompts a user to click a confirm (or cancel) button whenever he is trying to submit, publish, update, schedule or delete a WordPress post. Simple, lightweight, customizable and translation-ready.

Once activated, the plugin will intercept publishing actions on the following admin pages: post.php, edit-post.php, edit.php.

License

The Confirm Publishing Actions plugin for WordPress is released under GPLv2, you can use it free of charge on your personal or commercial website.

Support

Find support at the WordPress international forums or raise a ticket on Github.

Contribute

Check out the source code on Github.

Translate

Submit a pull request on Github.

Donate

If you like the Confirm Publishing Actions plugin and use it lot, please consider making a donation. Thanks!

螢幕截圖

  • Example of a confirmation dialogue.

安裝

Minimum Requirements

  • WordPress 3.1 or higher

Automatic installation

Log in to your WordPress admin panel, navigate to the Plugins menu and use the search form to search for this plugin. Click Install and WordPress will automatically complete the installation.

Manual installation

  1. Download the plugin to your computer and unzip it
  2. Use an FTP program, or your hosting control panel, to upload the unzipped plugin folder to the plugin directory of your WordPress installation.
  3. Log in to your WordPress admin panel and activate the plugin from the Plugins menu.

常見問題

Where is the settings page?

There are currently no settings to configure, however with a little php magic you’ll be able to do some customization (see below in this FAQ).

How do I change the text of the dialogue?

You can use a translation plugin or tool to modify the default text.

How do I translate %1$s? What does it mean?

%1$s is a placeholder that represents the singular name of a WordPress post type. You don’t need to translate it, just copy and use it exactly as is.

How can I limit plugin functionality to a specific post type?

With get_post_type(), a native WordPress function, you can enable or disable plugin functionality for specific post types (such as post, page, or any other post type). For example, to disable functionality for ‘Pages’, paste the following code snippet in the functions.php file of your WordPress theme:

function cpa_pt_dequeue( $type )
{
    if ( is_plugin_active( 'confirm-publishing-actions/cpa.php' ) && class_exists( 'cpa_confirm_publishing_actions' ) )
    {
        global $post;
        $type = get_post_type( $post );
        if( 'page' != $type )
            return;
        wp_dequeue_script( 'cpa' );
    }
    return;
}
add_action( 'admin_enqueue_scripts', 'cpa_pt_dequeue' );
How can I limit plugin functionality to selected user roles?

With current_user_can(), a native WordPress function, you can enable or disable functionality for specific user roles, based on the capabilities assigned to them. For example, to disable functionality for admins only, paste the following code snippet in the functions.php file of your WordPress theme:

function cpa_cap_dequeue()
{
    if ( is_plugin_active( 'confirm-publishing-actions/cpa.php' ) && class_exists( 'cpa_confirm_publishing_actions' ) )
    {
        if( ! current_user_can( 'manage_options' ) )
            return;
        wp_dequeue_script( 'cpa' );
    }
    return;
}
add_action( 'admin_enqueue_scripts', 'cpa_cap_dequeue' );

評價

There are no reviews for this plugin.

貢獻者及開發者

“Confirm Publishing Actions” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Confirm Publishing Actions 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3

  • Removes Quick Drafts (previously QuickPress) support
  • Fixes bug where script fired on link insert cancel
  • Adds support for touch devices
  • Code cleanup

1.2.3

  • catch schedule event

1.2.2

  • fix php notices

1.2.1.1

  • updated .pot file
  • it_IT language files
  • nl_NL language files

1.2.1

  • es_ES language files
  • yet another bugfix

1.2

  • plugin code overhaul
  • i18n fix, props inbytesinc

1.1.2

  • Minified JS

1.0

  • Initial release