1) Install the plugin wp-members http://butlerblog.com/wp-members/
2) Edit/Add the page to be blocked
4) set a Custom Field of “block” and set the value to “true”.
2) Edit/Add the page to be blocked
4) set a Custom Field of “block” and set the value to “true”.
“Exec-PHP” plugin allows us to add php codes in posts/pages
<?php register_activation_hook(__FILE__, $function); //The function "register_deactivation_hook" allow you to run a //plugin function when the plugin is deactivated. ?>