mponiek
Forum Replies Created
-
Based on Wordfence support google-amnalytics.com was added to Wordfence’s threat defense feed blacklist by accident and has been removed.
New scans should not be reporting this anymore.
Forum: Fixing WordPress
In reply to: [Plugin: Custom permalinks] BugsThank you for the information.
I will post my question there.
Is there any way to remove it from here to avoid any confusion?
Hello Dennis,
Thank you for your fast response.
Actually, I had already tried this but I could not get proper results.
The output was an array with elements the string Array.As I understood, it is not possible to return array from the custom msls_output_get, only strings.
So, I have made some changes and I got the wanted results.
For the filter in functions.php file:
function custom_msls_output_get($url, $link, $current) { $result = json_encode( array( 'language' => $link->alt, 'url' => $url, ) ); return $result; } add_filter('msls_output_get', 'custom_msls_output_get', 10, 3);And wherever you want to use those data:
$languagesOptions = array(); $mslsObject = new MslsOutput(); foreach ($mslsObject->get(0) as $option) { $languagesOptions[] = json_decode($option, true); }I hope that this will be helpful for someone else also.
Thanks again for your response.