/* Check User Subscribe Status */ function check_subscribe() { if ( get_user_option( 'jpw_subscribe_status', get_current_user_id() ) === 'ACTIVE' ) { /* Check current user if subscribe or not */ /* Insert your code here */ } } add_action( 'init', 'check_subscribe' ); /* Example Hook */