Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi there,
    you could use a simple plugin like this one:

    <?php
    /*
    Plugin Name: Confirm publish
    */
    $c_message = 'Are you sure you want to publish?'; // your confirm message
    function confirm_publish(){
    	global $c_message;
    	echo '
    <script type="text/javascript"><!--
    var publish = document.getElementById("publish");
    if (publish !== null) publish.onclick = function(){
    	return confirm("'.$c_message.'");
    };
    // --></script>';
    }
    
    add_action('admin_footer', 'confirm_publish');
    ?>

    Save the code in a file named confirm-publish.php and put the file in wp-content/plugins. Activate it through the admin panel and you’re done :).

    /Lingonberg

Viewing 1 replies (of 1 total)