Filter hook 'myblogs_blog_actions'

in WP Core File wp-admin/my-sites.php at line 153

View Source

myblogs_blog_actions

Filter Hook
Description
Filters the row links displayed for each site on the My Sites screen.

Hook Information

File Location wp-admin/my-sites.php View on GitHub
Hook Type Filter
Line Number 153

Hook Parameters

Type Name Description
string $actions The HTML site link markup.
object $user_blog An object containing the site data.

Usage Examples

Basic Usage
<?php
// Hook into myblogs_blog_actions
add_filter('myblogs_blog_actions', 'my_custom_filter', 10, 2);

function my_custom_filter($actions, $user_blog) {
    // Your custom filtering logic here
    return $actions;
}

Source Code Context

wp-admin/my-sites.php:153 - How this hook is used in WordPress core
<?php
 148  		 * @since MU (3.0.0)
 149  		 *
 150  		 * @param string $actions   The HTML site link markup.
 151  		 * @param object $user_blog An object containing the site data.
 152  		 */
 153  		$actions = apply_filters( 'myblogs_blog_actions', $actions, $user_blog );
 154  
 155  		echo "<p class='my-sites-actions'>" . $actions . '</p>';
 156  
 157  		/** This filter is documented in wp-admin/my-sites.php */
 158  		echo apply_filters( 'myblogs_options', '', $user_blog );

PHP Documentation

<?php
/**
		 * Filters the row links displayed for each site on the My Sites screen.
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string $actions   The HTML site link markup.
		 * @param object $user_blog An object containing the site data.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/my-sites.php
Related Hooks

Related hooks will be displayed here in future updates.