Title: Non-registered Users
Last modified: August 30, 2016

---

# Non-registered Users

 *  Resolved [hadon.westerby](https://wordpress.org/support/users/hadonwesterby/)
 * (@hadonwesterby)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/)
 * Greg,
 * Great plugin, that works simply and looks great.
 * A couple of Q’s;
 * Is it possible to remove the requirement for posters to be logged in?
    Perhaps
   replaces with a Captcha?
 * Finally, there is a small spelling error in the Account section of the Add Form–(
   small i – thought you would appreciate knowing)
 * Create an account for me so i can manage all my ads from one place (password 
   will be emailed to you) or Sign In
 * [https://wordpress.org/plugins/wpadverts/](https://wordpress.org/plugins/wpadverts/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883773)
 * Hi,
    you can remove the create account field by adding the code below to your
   theme functions.php file (or by creating a new plugin and pasting code there)
 *     ```
       add_filter( 'adverts_form_load', 'remove_advert_account_field' );
       function remove_advert_account_field( $form ) {
           if($form['name'] != 'advert') {
               return $form;
           }
           foreach($form['field'] as $k => $field) {
               if($field['name'] == '_adverts_account') {
                   unset($form['field'][$k]);
                   break;
               }
           }
   
           return $form;
       }
       ```
   
 * Thanks for the feedback, i understand the text should be?
 *     ```
       [...] me so I can manage [...]
       ```
   
 *  Thread Starter [hadon.westerby](https://wordpress.org/support/users/hadonwesterby/)
 * (@hadonwesterby)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883847)
 * I added the above to the base of the theme functions.php file…but was greeted
   with this;
 * Parse error: syntax error, unexpected ‘if’ (T_IF) in /home1/XXXXXXXX/public_html/
   XXXXXXX.com/XXXXX/wp-content/themes/nirvana/includes/theme-functions.php on line
   637
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883848)
 * I am not sure, do you have the code correctly copied? It does not seem to return
   any errors for me, in fact i tested it on my dev site before pasting here.
 *  Thread Starter [hadon.westerby](https://wordpress.org/support/users/hadonwesterby/)
 * (@hadonwesterby)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883849)
 * I did cut and paste the code as per the above.
 * I’m using Nirvana theme.
 * I’d need to restore WP and try again, as I can no longer access the dashboard.
 * No worries – it’s a test site. I’ll follow up in due course.
 * H
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883856)
 * Please note, that you do not need to restore site, just login via FTP and edit
   the theme-functions.php file.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Non-registered Users’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [account](https://wordpress.org/support/topic-tag/account/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 5 replies
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/non-registered-users-1/#post-6883856)
 * Status: resolved