• Resolved RGVBaptist

    (@rgvbaptist)


    Is there any way to turn OFF the ability to create an account when adding a classified listing? I do not want my visitors to have that ability. I’d prefer that the listing be created without any associated account and that I as the admin have the sole ability to edit/delete entries. I tried logging in as a user using the link sent to them upon registration and it is just confusing since they are taken to the Word Press back-end system and not my specific site front-end. I know my users and this will just confuse them.

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

    (@gwin)

    Hi, to do that add the code below in your theme functions.php file

    
    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"] == "_adverts_account" ) {
            unset( $form["field"][$key] );
        }
      }
      return $form;
    }
    
    Thread Starter RGVBaptist

    (@rgvbaptist)

    Thank you very much, that did the trick!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Turn off Account Creation Option’ is closed to new replies.