Thank for this help!Hello babiato's users,
If anyone is bothered by seeing the license sticker, it is possible to prevent it from being displayed by commenting on the lines, described in the PHP window below, which are in the file:
/wp-content/plugins/custom-admin-interface-pro/custom-admin-interface-pro.php
PHP:if($message !== 'Yes' && $message !== false){ $purchaseLink = 'https://northernbeacheswebsites.com.au/custom-admin-interface-pro/'; if($message == 'Incorrect Details'){ $displayMessage = 'The Order ID and Purchase ID you entered is not correct. Please double check the details you entered to receive product updates.'; } elseif ($message == 'Licence Expired'){ $displayMessage = 'Your licence has expired. Please <a href="'.$purchaseLink.'" target="_blank">purchase a new licence</a> to receive further updates for this plugin.'; } elseif ($message == 'Website Mismatch') { $displayMessage = 'This plugin has already been registered on another website using your details. Under the licence terms this plugin can only be used on one website. Please <a href="'.$purchaseLink.'" target="_blank">click here</a> to purchase an additional licence. To change the website assigned to your licence, please click <a href="https://northernbeacheswebsites.com.au/my-account/view-order/'.$order_id.'/" target="_blank">here</a>.'; } else { $displayMessage = ''; } echo '<tr class="plugin-update-tr active"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-error notice-alt"><p class="installer-q-icon">'.$displayMessage.'</p></div></td></tr>'; }
Cheers
in my case i have to "extent the comment"
PHP:
/*$path = plugin_basename( __FILE__ );
add_action("after_plugin_row_{$path}", function( $plugin_file, $plugin_data, $status ) {
$option_name = 'custom_admin_interface_pro_settings';
$section = 'general_settings';
if(get_option($option_name)){
$option = get_option($option_name);
//check if array key exists
if(array_key_exists($section,$option)){
if(strlen($option[$section]['purchase_email'])>0 && strlen($option[$section]['order_id'])>0){
$order_id = $option[$section]['order_id'];
//get transient
$message = get_transient('custom-admin-interface-pro-update');
if($message !== 'Yes' && $message !== false){
$purchaseLink = 'https://northernbeacheswebsites.com.au/custom-admin-interface-pro/';
if($message == 'Incorrect Details'){
$displayMessage = 'The Order ID and Purchase ID you entered is not correct. Please double check the details you entered to receive product updates.';
} elseif ($message == 'Licence Expired'){
$displayMessage = 'Your licence has expired. Please <a href="'.$purchaseLink.'" target="_blank">purchase a new licence</a> to receive further updates for this plugin.';
} elseif ($message == 'Website Mismatch') {
$displayMessage = 'This plugin has already been registered on another website using your details. Under the licence terms this plugin can only be used on one website. Please <a href="'.$purchaseLink.'" target="_blank">click here</a> to purchase an additional licence. To change the website assigned to your licence, please click <a href="https://northernbeacheswebsites.com.au/my-account/view-order/'.$order_id.'/" target="_blank">here</a>.';
} else {
$displayMessage = '';
}
echo '<tr class="plugin-update-tr active"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-error notice-alt"><p class="installer-q-icon">'.$displayMessage.'</p></div></td></tr>';
}
} else {
echo '<tr class="plugin-update-tr active"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-error notice-alt"><p class="installer-q-icon">Please enter your Order ID and Purchase ID in the plugin settings to receive automatics updates.</p></div></td></tr>';
}
}
}
}, 10, 3 );
*/