D’après le nom de ce plugin WordPress, on pourrait se dire qu’il est payant :
OUI et NON, ce qui est payant c’est le support qu’il y a derrière. Donc si vous avez besoin d’aide, n’hésitez pas, prenez une licence. Mais sinon c’est un plugin Open Source (licence GPL).
En fait le plugin est disponible sur GitHub à cette adresse : https://github.com/restrictcontentpro/restrict-content-pro
Evidemment comme beaucoup de plugin, il fait sa pub, le souci c’est que le message suivant s’affiche sur toute les pages de l’administration.
Voici un petit script (a ajouter dans votre code ou function.php
) pour supprimer ce message :
[pastacode lang= »php » message= »Remove the license admin notice in admin for » highlight= » » provider= »manual »]
/**
* Plugin : Restrict Content Pro
* Remove the admin notice in admin area ( except for the option plugin page)
* @return void
*/
function remove_admin_notice_rcp(){
// Delete the admin notice hook
remove_action('admin_notices','rcp_admin_notices');
global $pagenow;
// Add the hook just for the plugin page
if( 'admin.php' == $pagenow
&& isset($_GET['page'])
&& 'rcp-' == substr($_GET['page'], 0, 4)
){
add_action( 'admin_notices', 'rcp_admin_notices' );
}
}
add_action('plugins_loaded', 'remove_admin_notice_rcp');
[/pastacode]
Attention, il faut laisser l’affichage sur les pages du plugin car la fonction affiche beaucoup d’autres messages d’informations.