Wordpress/wp-admin/js/user-search.dev.js

9 lines
256 B
JavaScript

jQuery( function($) {
var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : '';
$( '#adduser-email, #newuser' ).autocomplete({
source: ajaxurl + '?action=autocomplete-user' + id,
delay: 500,
minLength: 2
});
});