Plugin Configuration Incomplete — Display Everywhere

Home » Snippets » Plugin Configuration Incomplete — Display Everywhere
0

Created with:

Admin Notice Generator

Visibility: 

public

Creator: WPTurbo Team

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project
				/**
 * Display an admin notice on the WordPress admin dashboard.
 *
 * This function puts an admin notice with a message on the WordPress admin dashboard.
 * The message can be customized by modifying the $message variable.
 * The admin notice box style can be modified by changing the 'notice-warning' class in the HTML code.
 *
 * @since 1.0.0
 *
 * @return void
 */
function wpturbo_plugin_not_configured_admin_notice() : void {
	$message = 'The [PLUGIN NAME] PLUGIN ISN\'T CONFIGURED. PLEASE CONFIGURE IT TO ACTIVATE IT!';
	echo '<div class="notice notice-warning ">';
		echo '<p>';
			_e( $message, 'wpturbo' );
		echo '</p>';
	echo '</div>';
}
add_action( 'admin_notices', 'wpturbo_plugin_not_configured_admin_notice' );

			

Register an account to save your snippets or go Pro to get more features.