Support » Plugin: Beautiful taxonomy filters » Change selected option name “All cpt-slug” to “Any string”

  • Resolved Lucas M


    The name of default option selected in dropdown label is “All my-cpt-slug” but I want to change this name, to a string, like “Most recents”.

    How it’s possible?


    • This topic was modified 2 years, 12 months ago by Lucas M. Reason: More easier to understand the problem
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathandejong


    Hi Lucas,

    You can filter the dropdown options with beautiful_filters_dropdown_categories filter and change the show_option_all option to whatever you like!

    function modify_btf_label( $args, $taxonomy ) {
    $args['show_option_all'] = 'Most recents';
    return $args;
    add_filter( 'beautiful_filters_dropdown_categories', 'modify_btf_label', 10, 2 );

    Something like that should work. If you want to target a specific dropdown just use the $taxonomy value in an if statement first 🙂

    Best of luck!

    Thread Starter Lucas M


    Exactly what I needed! Thank you. I had tried something using the API but without success. All right now.

    Keep making the world better!

    Plugin Author Jonathandejong


    No problem! Glad to help 🙂

    Please leave a review if you like BTF so others can find it too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change selected option name “All cpt-slug” to “Any string”’ is closed to new replies.