0
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-error' class in the HTML code.
*
* @since 1.0.0
*
* @return void
*/
function wpturbo_activate_plugin_license_key() : void {
$message = 'You have successfully installed the plugin but haven\'t activated your license key. Please activate your license key if you want the plugin to work.';
echo '<div class="notice notice-error ">';
echo '<p>';
_e( $message, 'wpturbo' );
echo '</p>';
echo '</div>';
}
add_action( 'admin_notices', 'wpturbo_activate_plugin_license_key' );