• Resolved spike210957

    (@spike210957)


    My silly users are typing “Mr” or “Mrs” into the Advert Title.

    Is there a hook for changing the “Title” text?

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    You can do this with adverts_form_load filter

    
    add_filter( "adverts_form_load", "customize_adverts_add" );
    function customize_adverts_add( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "post_title" ) {
            $form["field"][$key]["label"] = "Some other label";
        }
      }
      return $form;
    }
    

    You can also do this using Custom Fields extension.

Viewing 1 replies (of 1 total)
  • The topic ‘Change “Title” to “Description”’ is closed to new replies.