ap_post_attach_pre_fetch( array $ids )
Description #
Pre fetch and cache all question and answer attachments.
Parameters #
- $idsarray (Required) Post IDs.
Source #
File: includes/upload.php
function ap_post_attach_pre_fetch( $ids ) { if ( $ids && is_user_logged_in() ) { $args = array( 'post_type' => 'attachment', 'include' => $ids, ); $posts = get_posts( $args );// @codingStandardsIgnoreLine update_post_cache( $posts ); } }
Expand full source code Collapse full source code View on GitHub: includes/upload.php:498
Add your comment