Rate Us on Trustpilot

Home » Snippets » Rate Us on Trustpilot
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-info' class in the HTML code.
 *
 * @since 1.0.0
 *
 * @return void
 */
function wpturbo_rate_us_on_trustpilot_admin_notice() : void {
	$message = 'If you like our plugin, please rate us on <a href=\'http://trustpilot.com\'>Trustpilot</a>';
	echo '<div class="notice notice-info is-dismissible">';
		echo '<p>';
			_e( $message, 'wpturbo' );
		echo '</p>';
	echo '</div>';
}
add_action( 'admin_notices', 'wpturbo_rate_us_on_trustpilot_admin_notice' );

			

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