bp_activity_embed_excerpt_onclick_location_filter_callback( array $matches )
Add onclick=”top.location.href” to a link.
Description
Parameters
- $matches
-
(array) (Required) Items matched by bp_activity_embed_excerpt_onclick_location_filter().
Return
(string)
Source
File: bp-activity/bp-activity-embeds.php
function bp_activity_embed_excerpt_onclick_location_filter_callback( $matches ) { return sprintf( '<a href="%1$s" onclick="top.location.href=\'%1$s\'"', $matches[1] ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.