Forums

This topic contains 0 replies, has 1 voice, and was last updated by  yrsengar@gmail.com 1 year, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #263522

    yrsengar@gmail.com
    Participant

    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-link icon-logo-star icon-search icon-star