Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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' );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #show #notice
ADD COMMENT
Topic
Name
2+7 =