myblogs_options
Filter HookDescription
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 | 158 |
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_options
add_filter('myblogs_options', '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:158
- How this hook is used in WordPress core
<?php
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 );
159
160 echo '</li>';
161
162 restore_current_blog();
163 }
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.