Somewhere in your theme or plugins, you must have a line like this add_action( 'something', 'yoursite_pre_user_query' ). Find it and remove or fix it.
Also, the get_users function has since been updated. Your first parameter must be an array.
<ul>
<?php
$blogusers = get_users( array('blog_id' => 1, 'orderby' => 'nicename') );
foreach ( $blogusers as $user ) {
echo '<li>Nick: ' . $user->user_nicename . '</li>';
echo '<li>Name: ' . $user->display_name. '</li>';
echo '<li>Email: ' . $user->user_email. '</li>';
}
?>
</ul>
Related Posts:
- settings API: how to create a multi checkbox with blog categories?
- Stop post being published
- call_user_func_array expects parameter 1 to be a valid callback
- custom-background callback breaks media uploader
- Category callback box problem
- I need help with this error [duplicate]
- How to pass arguments from add_settings_field() to the callback function?
- current_shortcode() – detect currently used shortcode
- wp enqueue script using scripts from cdn with a safety callback
- Can an action callback prevent the parent from continuing execution?
- WordPress REST API – Permission Callbacks
- Using a private method as an action callback from within a class
- How to check if which hook triggered the call to a function?
- Callback for wp.autosave.server.triggerSave();
- How do I hook an Ajax request into a PHP callback?
- gutenberg dynamic block is returning 404
- How to pass variable via $callback_args for add_meta_box
- ob_get_clean returns empty string, ob_get_flush outputs string
- replace current_page_item class in menu
- How do I use the control callback when creating a simple dashboard plugin
- How to get control choices from $setting object passed to sanitize_callback
- Update term count using a callback function
- Is it possible to create an action hook using do_action() within add_action()?
- Extend Woocommerce rest api routes fails
- Get returned variable from a function to add_shortcode function
- PHP Warning: call_user_func() expects parameter 1 to be a valid callback
- esc_url not working within add_settings_field callback
- wp_insert_post() Callback?
- How to use wp_send_json_error?
- How can one utilize a variable as a callback function name for add_settings_field
- Callback URL in WordPress
- How to validate register settings array
- How do I check if AJAX nonces are implemented correctly?
- call_user_func_array() errors after migrating site with InstantWP
- How to define a callback for an URI?
- Gutenberg: How to check if a block is used in a paginated post?
- settings_fields doesn’t appear to be running
- How to insert a record by clicking on the link using AJAX
- Problems with comments callback (Argument #1 is not an array?)
- Multiple options pages validation for a plugin
- WordPress Custom Menus Issue
- Using shortcode content with nested shortcode
- Callback to custom field is not working in WordPress REST API
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Shortcode function executed twice?
- Best practice for query_posts in responsive design?
- How to access $post from a callback function
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Customizer: Category Select Sanitize
- Settings API callback function inserts html quotes from nowhere
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- Filter an array with a callback – for single & multidimensional arrays
- Run function after a post has finished saving – callback function perhaps?
- Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’
- How to return multiple arguments from AJAX callback function
- url – ajax loaded but no JS
- admin_notices action doesn’t trigger within save_post action
- How To Override A WooCommerce AJAX Function
- Callback After WordPress Customizer Complete Loading
- Customiser sections not being displayed with `active_callback`
- Ajax insert or update data
- Where is this function’s callback getting its arguments from?
- Detect device change (desktop, tablet or mobile) in Customizer
- Problem with Class, Filters and Callbacks
- remove_action: Initial attempt failed while a later attempt worked
- Plugin default settings hook
- How do i specify a url to which to redirect the user after he logs out from facebook?
- Default Gravatar not showing for pings
- Using call_user_func() within add_settings_section() within a Class
- Does adding a callback like this to wp_head allows you to add additional content?
- Add parameters to 3rd party callback function
- How to customize ‘children comments’ in WordPress?
- How to ‘clone’ select metabox options with a callback function? [closed]
- JavaScript missing from shortcode content
- CallBack URL for payment gateway redirecting to homepage instead of executing callback function
- “Class Not Found” in HTML Form Target PHP File that contains the class
- Update block once an API request returns with a value
- Call function with button and return response
- Warning and fatal error
- How to create callback function which returns all posts with specific data?
- Debug in WP backend
- iFrame onLoad in custom Gutenberg block
- What is the proper way to call a function (from functions.php) on a link click?
- Add_action not calling callback function
- standard callback function for wp_list_comments
- Ajax callback and shortcode functionality
- Calling PHP function doesn’t work in index.php
- Custom Sanitation Function Triggering an Alert in Customizer?
- How can i call a custom method on submission of a custom plugin post type?
- Hook into admin_notices after sending mail
- call user func array error after moved the site to new server
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- Reference external file as a function
- Meta boxes not showing up
- Rewrite rule to redirect to a particular filename.php
- Using Javascript Callback from plugin in a theme
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- Callback API for getting response from fygaro payment gateway
- Problem with inline style CSS properties issue on DIV
- Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks