bp_activity_embed_excerpt_onclick_location_filter_callback( array $matches )

Add onclick=”top.location.href” to a link.


Parameters Parameters

$matches

(array) (Required) Items matched by bp_activity_embed_excerpt_onclick_location_filter().


Top ↑

Return Return

(string)


Source 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] );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.