ap_post_author_pre_fetch( array $ids )
Description #
Pre fetch users and update cache.
Parameters #
- $idsarray (Required) User ids.
Source #
File: includes/functions.php
function ap_post_author_pre_fetch( $ids ) { $users = get_users( array( 'include' => $ids, 'fields' => array( 'ID', 'user_login', 'user_nicename', 'user_email', 'display_name' ), ) ); foreach ( (array) $users as $user ) { update_user_caches( $user ); } update_meta_cache( 'user', $ids ); }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:1288
Add your comment