WordPress Admin Notice Generator

You can get the ready admin notice code for WordPress with this generator.
wp-skills.com

function wpskills_admin_notice() {
    ?>
    <div class="notice notice-success is-dismissible">
        <p><?php _e( 'My Custom Admin Notice Message', 'text-domain' ); ?></p>
    </div>
    <?php
}
add_action( 'admin_notices', 'wpskills_admin_notice' );