• File: admin-notices.php
  • Full Path: /home/dealkatnwc/www/wp-content/plugins/userpro/admin/admin-notices.php
  • Date Modified: 02/11/2019 5:39 PM
  • File size: 728 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

function userpro_admin_notice($message, $errormsg = false)
{
	if ($errormsg) {
		echo '<div id="message" class="error">';
	}
	else {
		echo '<div id="message" class="updated fade">';
	}

	echo "<p><strong>$message</strong></p></div>";
}

function userpro_admin_notices()
{
	if (current_user_can('manage_options') && get_option('userpro_trial') == 0) {
		userpro_admin_notice( sprintf(__('You are using a trial version of UserPro plugin. If you have purchased the plugin, please enter your purchase code to enable the full version. You can enter your <a href="%s">purchase code here</a>.','userpro'), admin_url() . 'admin.php?page=userpro&tab=licensing'), true);
	}
}

add_action('admin_notices', 'userpro_admin_notices');