Hello,
I’ve read this: https://wpgeodirectory.com/support/topic/add-a-listing-without-first-registering/ but i think that this could be done in some other way.
It should be nice to be able to have add-listing that can optionally register a new user in the same moment a new listing add occours.
Digging into the code there is no clean way to do this, there’s not even a filter on the check before the redirect occours for non-logged-in users that tries to visit the add-listing page.
From wp-content/plugins/geodirectory/geodirectory-functions/template_functions.php:
//geodir_is_login(true);
global $current_user;
if (!$current_user->ID) {
wp_redirect(geodir_login_url(array(
'redirect_add_listing'=>urlencode(geodir_curPageURL())
)), 302);
exit;
}