I am using a plugin which count number of views and restrict user with specific level to view limited posts. For example user with level 1 can view three posts or pages every month after viewing three they will be asked to upgrade their level to view more.

Problem is that when number of views are expired for a user this plugin will not allow them to view any page even they will not be able to view upgrade page. So I want this plugin to ignore these pages. I tried this in plugin file but it didn't worked.

if ( !is_page(42)) {

require_once IHC_PATH . 'classes/Ihc_Workflow_Restrictions.class.php';

$Ihc_Workflow_Restrictions = new Ihc_Workflow_Restrictions();    


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.