Docs & Support

Learn about all Business Directory’s features and get support from our amazing customer success team.

CustomizationsHooks – For Developers
wpbdp_admin_listing_owner_mode

wpbdp_admin_listing_owner_mode

Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don’t provide support for code customizations or 3rd party development.

Force the user dropdown to autocomplete or not. By default, it will show the ajax list for users in the listing edit page.

Usage

add_filter( 'wpbdp_admin_listing_owner_mode', 'wpbdp_admin_listing_owner_mode' );

Parameters

The values for the return string are either:

  • inline for inline (show all users)
  • ajax for ajax select mode (type to search for a user)

Examples

Turn of autocomplete

add_filter( 'wpbdp_admin_listing_owner_mode', 'wpbdp_admin_listing_owner_mode' );
function wpbdp_admin_listing_owner_mode( $mode ) {
	return 'inline';
}

Change Log

Added in version 5.14

Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2010-2025 S11 Directories, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 20,000+ using Business Directory Plugin to build website directories fast. Get Started