Artemitus
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Custom page restrictionsUnfortunately my plugin is a premium plugin and i bought plugin on themeforest. And creator does not provide support on this issue.
I found this code, but its not working 🙁 Any help?
—————————function deny_pages() { $blocked_page_ids = array( 10, 11, 12 ); // page ids. if( is_user_logged_in() && is_page( $blocked_page_ids ) ) { $user_point = (int)get_user_meta( get_current_user_id(), 'points', true ); if( $user_point < 500 ) { wp_redirect( home_url( '/' ) ); exit(); } } else { if( is_page( $blocked_page_ids ) ) { wp_redirect( home_url( '/' ) ); exit(); } } } add_action( 'init', 'deny_pages' );Thanks,i fix it.
How can i apply css? Is there any example?
Viewing 3 replies - 1 through 3 (of 3 total)