Title: Confirm Publishing Actions
Author: Peter J. Herrel
Published: <strong>27 outubro, 2011</strong>
Last modified: 9 maio, 2015

---

Pesquisar plugins

![](https://ps.w.org/confirm-publishing-actions/assets/banner-772x250.png?rev=1009576)

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/confirm-publishing-actions/assets/icon-256x256.png?rev=1009576)

# Confirm Publishing Actions

 Por [Peter J. Herrel](https://profiles.wordpress.org/donutz/)

[Baixar](https://downloads.wordpress.org/plugin/confirm-publishing-actions.1.3.zip)

 * [Detalhes](https://br.wordpress.org/plugins/confirm-publishing-actions/#description)
 * [Avaliações](https://br.wordpress.org/plugins/confirm-publishing-actions/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/confirm-publishing-actions/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/confirm-publishing-actions/#developers)

 [Suporte](https://wordpress.org/support/plugin/confirm-publishing-actions/)

## Descrição

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](https://wordpress.org/support/plugin/confirm-publishing-actions)
or raise a ticket on [Github](https://github.com/diggy/confirm-publishing-actions/issues).

#### Contribute

Check out the source code on [Github](https://github.com/diggy/confirm-publishing-actions/).

#### Translate

Submit a pull request on [Github](https://github.com/diggy/confirm-publishing-actions/).

#### Donate

If you like the Confirm Publishing Actions plugin and use it lot, please consider
making a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H23P4H8CHF95N).
Thanks!

## Capturas de tela

[⌊Example of a confirmation dialogue.⌉⌊Example of a confirmation dialogue.⌉[

Example of a confirmation dialogue.

## Instalação

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

## Perguntas frequentes

  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' );
    ```

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“Confirm Publishing Actions” é um programa de código aberto. As seguintes pessoas
contribuíram para este plugin.

Colaboradores

 *   [ Peter J. Herrel ](https://profiles.wordpress.org/donutz/)
 *   [ inBytes ](https://profiles.wordpress.org/inbytesinc/)

[Traduzir o “Confirm Publishing Actions” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/confirm-publishing-actions)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/confirm-publishing-actions/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/confirm-publishing-actions/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/confirm-publishing-actions/)
por [RSS](https://plugins.trac.wordpress.org/log/confirm-publishing-actions/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 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

## Meta

 *  Versão **1.3**
 *  Última atualização **11 anos atrás**
 *  Instalações ativas **70+**
 *  Versão do WordPress ** 3.1 ou superior **
 *  Testado até **4.2.39**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/confirm-publishing-actions/)
 * Tags
 * [confirm](https://br.wordpress.org/plugins/tags/confirm/)[delete](https://br.wordpress.org/plugins/tags/delete/)
   [publish](https://br.wordpress.org/plugins/tags/publish/)[submit](https://br.wordpress.org/plugins/tags/submit/)
   [update](https://br.wordpress.org/plugins/tags/update/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/confirm-publishing-actions/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  3 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/confirm-publishing-actions/reviews/)

## Colaboradores

 *   [ Peter J. Herrel ](https://profiles.wordpress.org/donutz/)
 *   [ inBytes ](https://profiles.wordpress.org/inbytesinc/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/confirm-publishing-actions/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H23P4H8CHF95N)