Support

Account

Home Forums Add-ons Repeater Field Dynamically get meta_key fix for esc_sql() change in wp 4.8.3 Reply To: Dynamically get meta_key fix for esc_sql() change in wp 4.8.3

  • I am trying to figure out how I can just use $_get, and pull the array.

    Using this

    // If you have the following URL :
    
    // http://www.example.com/test.php?a=10&b=plop
    
    // Then $_GET will contain :
    
    array
      'a' => string '10' (length=2)
      'b' => string 'plop' (length=4)

    From https://stackoverflow.com/questions/5415224/how-to-set-get-variable

    So, this should loop through each parameter and value in the URL.
    However; if I understand this filter, it is only pulling part of the value, and I can’t figure out what this is actually populating for $rootkey. I can’t figure out how to see that ECHO.

    	
    $rootkeys[] = $_GET;
    	foreach($rootkeys as $rootkey) {
    	$where = str_replace("meta_key = 'feelings_$", "meta_key LIKE 'feelings_%", $where);
    	
    	}
    	return $where;