Forums

Give help. Get help.

  • # December 6, 2017 at 6:59 pm

    I am trying to add the regex (.*[aA-zZ]){3} into a PHP function within double quotes. Could you please help me escape it so there are no errors.

    The function:

    function my_searchwp_term_pattern_whitelist( $whitelist ) {
    $my_whitelist = array(
    “Regex goes here”,
    );

    $whitelist = array_merge( $my_whitelist, $whitelist );
    return $whitelist;
    }

    Any help will be much appreciated. Thank you :)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag