myblogs_blog_actions
Filters the row links displayed for each site on the My Sites screen.
Usage
add_filter( 'myblogs_blog_actions', 'wp_kama_myblogs_blog_actions_filter', 10, 2 );
/**
* Function for `myblogs_blog_actions` filter-hook.
*
* @param string $actions The HTML site link markup.
* @param object $user_blog An object containing the site data.
*
* @return string
*/
function wp_kama_myblogs_blog_actions_filter( $actions, $user_blog ){
// filter...
return $actions;
}
- $actions(string)
- The HTML site link markup.
- $user_blog(object)
- An object containing the site data.
Changelog
| Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/my-sites.php
wp-admin/my-sites.php 153
$actions = apply_filters( 'myblogs_blog_actions', $actions, $user_blog );