pre_get_sites action-hook . WP 4.6.0
Fires before sites are retrieved.
Usage
add_action( 'pre_get_sites', 'action_function_name_7367' ); function action_function_name_7367( $this ){ // action... }
- $this(WP_Site_Query)
- Current instance of WP_Site_Query (passed by reference).
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-site-query.php 283
do_action_ref_array( 'pre_get_sites', array( &$this ) );