featured_content_post_ids, (array
featured_content_post_ids, (array
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('featured_content_post_ids, (array') is found 2 times:
- /jetpack_vendor/automattic/jetpack-classic-theme-helper/src/class-featured-content.php line 252
if ( $term ) { $tag = $term->term_id; } else { /** This action is documented in modules/theme-tools/featured-content.php */ return apply_filters( 'featured_content_post_ids', array() ); } // Back compat for installs that have the quantity option still set. $quantity = $settings['quantity'] ?? self::$max_posts; // Query for featured posts. - /jetpack_vendor/automattic/jetpack-classic-theme-helper/src/class-featured-content.php line 277
// Return empty array if no featured content exists. if ( ! $featured ) { /** This action is documented in modules/theme-tools/featured-content.php */ return apply_filters( 'featured_content_post_ids', array() ); } // Ensure correct format before save/return. $featured_ids = wp_list_pluck( (array) $featured, 'ID' ); $featured_ids = array_map( 'absint', $featured_ids );