• Hi
    I would like to discard specific pages when site wide option is enabled. I tried some code from github but couldnt make it worked. Can you add an option to discard some pages or give us the php code for it?

    And also how can I make the enter button functionality to be disabled?
    I want to disable enter function and direct visitors to only one or two pages to see other pages are not.

    How can I do that?

Viewing 1 replies (of 1 total)
  • Thread Starter gameslopedy

    (@yiggory)

    /**
    
    Maybe Show Dialog
    @param bool $bool Default true
    @param WP_Post $post_ob A WP_Post object
    @return bool True to show the dialog, false to hide it.
    */
    function maybe_show_dialog( $bool = true, $post_ob = null ) {
    $examplePost = get_post();
    if ( $examplePost->ID == 164) {
    return false;
    }
    
    return $bool;
    
    if ( is_user_logged_in() ) {
        return false;
    }
    
    return $bool;
    }
    add_filter( 'cwv3_should_gate', 'maybe_show_dialog', 10, 2 );

    this worked but how to disable enter button?

Viewing 1 replies (of 1 total)
  • The topic ‘How to discard specific page and disable the Enter button functionality?’ is closed to new replies.