Answers for "hide notice wordpress"

PHP
1

hide wordpress error

/* provided by [email protected] */
/* add in config file  */
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', false );
define( 'SAVEQUERIES', false );

/* add in function.php file  */

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
Posted by: Guest on March-24-2021
1

wordpress show notice

function sample_admin_notice__success() {
    ?>
    <div class="notice notice-success is-dismissible">
        <p><?php _e( 'Done!', 'sample-text-domain' ); ?></p>
    </div>
    <?php
}
add_action( 'admin_notices', 'sample_admin_notice__success' );
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language