-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_link_rel
github-actions[bot] edited this page Aug 18, 2025
·
8 revisions
Filters the rel attribute for ActivityPub links.
/**
* Filters the rel attribute for ActivityPub links.
*
* @param string $string
* @return string The filtered value.
*/
function my_activitypub_link_rel_callback( string string ) {
// Your code here.
return string;
}
add_filter( 'activitypub_link_rel', 'my_activitypub_link_rel_callback' );
-
string
string
$rel The rel attribute string. Default 'nofollow noopener noreferrer'. Other variable names:$nofollow_noopener_noreferrer
apply_filters( 'activitypub_link_rel', 'nofollow noopener noreferrer' )
Follow @[email protected] for updates and news.