wpmublogsaction
Fires inside the auxiliary 'Actions' column of the Sites list table.
Description
By default this column is hidden unless something is hooked to the action.
Parameters (1)
- 0. $blog_blog_id (int)
- The blog blog id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'wpmublogsaction', $blog_blog_id );
- The following example is for adding a hook callback.
- // define the wpmublogsaction callback
- function action_wpmublogsaction( $blog_blog_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'wpmublogsaction', 'action_wpmublogsaction', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'wpmublogsaction', 'action_wpmublogsaction', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/class-wp-ms-sites-list-table.php
- do_action( 'wpmublogsaction', $blog['blog_id'] );