Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function override_post_access_settings( $post_restrictions, $post_id ) {
- if ( is_page( 'wp-fusion-a' ) && ! empty( $post_restrictions['allow_tags'] ) ) {
- foreach ( $post_restrictions['allow_tags'] as $i => $tag ) {
- if ( strpos( $tag, 'Unlock' ) !== false ) {
- unset( $post_restrictions['allow_tags'][ $i ] );
- }
- }
- }
- return $post_restrictions;
- }
- add_filter( 'wpf_post_access_meta', 'override_post_access_settings', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement