• Resolved brooke7

    (@brooke7)


    Hi,

    I’m trying to change the placeholder text to “NO PREFERENCE” but when I used the code provided, the dropdown placeholder returns completely empty. The code is now removed since it caused that issue but it was previously added to functions.php

    Can you please help me resolve this issue?

    function modify_categories_dropdown( $placeholder, $taxonomy ) {

    return ‘NO PREFERENCE’;
    }
    add_filter( ‘beautiful_filters_dropdown_placeholder’, ‘modify_dropdown_placeholder’, 10, 2 );

    The page I need help with: [log in to see the link]

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

    (@jonathandejong)

    Hi Brooke,

    Your filter hook calls to a function that is not your actual function name ??

    
    function modify_dropdown_placeholder( $placeholder, $taxonomy ) {
    
    return ‘NO PREFERENCE’;
    }
    add_filter( ‘beautiful_filters_dropdown_placeholder’, ‘modify_dropdown_placeholder’, 10, 2 );
    

    I see that the documentation for this filter is incorrect and I’ll have it fixed!

Viewing 1 replies (of 1 total)
  • The topic ‘Placeholder API filter not working’ is closed to new replies.