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;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.