Registration and automatic login

Good morning
how can I ensure that all visitors to my site post an ad with the same account without registration as on your live demo site?
That’s what you say when he visits my site they are all automatically connected to a single account and can post an ad without having to register.


Unfortunately, there is no such function, it requires a custom implementation. As for the demo site, we simply created one user and added autocomplete at login using a custom implementation. If you need a PHP snippet, we can provide it. But please note that any user will be able to enter the site, delete a listing, or edit it.

Yes I would like to have the PHP snippet please and thank you for your advice but I will use it for visitors because I have disabled add an ad Thank you


Please use this PHP snippet (How to add custom code snippets - HivePress Help Center):

	function( $form ) {
		$form['fields']['username_or_email']['default'] = 'demo';

		$form['fields']['password']['default'] = 'demo';
		$form['fields']['password']['type']    = 'text';

		return $form;

Please note that it can require further customization.

Thanks a lot !

the PHP snippet works wonderfully just one last question can add a code to validate automatically


Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work Fiverr - Freelance Services Marketplace

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.