• Hi. I have some links to specific filters.
    I would to get the name of filter from the url.
    If the current url is myurl/filters=gama[43]|product_cat[20], i want to get the name of gama 43, to use it in my custom function.
    I was reading the documentation but I did not find what I am looking for.
    Could you give me some guidance?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    You can try to use global parse variable to get all filters data

    
            global $berocket_parse_page_obj;
            $data = $berocket_parse_page_obj->get_current();

    This data has all selected filters.

    Regards,
    Oleg

Viewing 1 replies (of 1 total)
  • The topic ‘Get the name of filter from the url’ is closed to new replies.