Support » Plugin: BP Profile Search » changing placeholder

  • Hi Andrea,

    congratulations for this plugin that gives a sense of using Budypress.
    Put it as Premium and I will be the first customer.

    I have followed a thread and used your indications to change labels placeholders that, in my case, comes from a “registration setting logic” so I cannot change on the registration forms but they sounds different in the search form, so I have to change some of them and here we are.

    This is the code (field_label6 is the id):

    add_action (‘bps_field_before_search_form’, ‘set_default’);
    function set_default ($f)
    {
    if ($f->code == ‘field_label6’) // replace 34 with your field ID
    {
    // assign the default value
    $f->value = “Cognome”;
    }
    }

    I have added with snippet plugin as I’d prefer not to change wordpress list of files by my own, but it does not work.

    What do you suggest?

    Thank you very much,

    Giuseppe

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘changing placeholder’ is closed to new replies.