Changeset 13471 for trunk/src/bp-activity/bp-activity-embeds.php
- Timestamp:
- 05/07/2023 11:36:50 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-embeds.php
r12757 r13471 348 348 do_action( 'bp_activity_embed_after_media' ); 349 349 } 350 351 /** 352 * Make sure the Activity embed template will be used if neded. 353 * 354 * @since 12.0.0 355 * 356 * @param WP_Query $query Required. 357 */ 358 function bp_activity_parse_embed_query( $query ) { 359 if ( bp_is_single_activity() && $query->get( 'embed' ) ) { 360 $query->is_embed = true; 361 } 362 } 363 add_action( 'bp_members_parse_query', 'bp_activity_parse_embed_query', 10, 1 );
Note: See TracChangeset
for help on using the changeset viewer.