Class Fieldmanager_Datasource_User
Datasource to populate autocomplete and option fields with WordPress Users.
- Fieldmanager_Datasource
- Fieldmanager_Datasource_User
Methods summary
public
|
|
public
integer|string
|
|
public
array
|
|
public
string
|
#
get_ajax_action( )
Get an action to register by hashing (non cryptographically for speed) the options that make this datasource unique. |
public
string
|
#
presave_alter_values(
Delete reciprocal user metadata prior to saving (presave will re-add). Reciprocal relationships are not possible if we are not storing by ID. |
public
string
|
#
presave(
Handle reciprocal usermeta. Reciprocal relationships are not possible if we are not storing by ID. |
public
string
|
|
public
string
|
Methods inherited from Fieldmanager_Datasource
autocomplete_search()
,
get_items_for_ajax()
,
preload_alter_values()
Magic methods summary
Properties summary
public
mixed
|
$query_callback |
#
Supply a function which returns a list of users; takes one argument, a possible fragment |
public
array
|
$query_args |
#
Arguments to get_users(), which uses WP's defaults. |
public
boolean
|
$use_ajax |
#
Allow AJAX. If set to false, Autocomplete will pre-load get_items() with no fragment, so False could cause performance problems. |
public
string
|
$display_property |
#
Display property. Defaults to display_name, but can also be 'user_login', 'user_email', or 'user_nicename' |
public
string
|
$store_property |
#
Store property. Defaults to ID, but can also be 'user_login', 'user_email', or 'user_nicename'. |
public
string
|
$capability |
#
Capability required to refer to a user via this datasource. |
public
string|Null
|
$reciprocal |
#
If not empty, set this object's ID as a value on the user. This is used to establish two-way relationships. |
Properties inherited from Fieldmanager_Datasource
$ajax_action
,
$allow_optgroups
,
$counter
,
$grouped
,
$options
,
$options_callback