wpcom_api_pre_get_active_blog_author

wpcom_api_pre_get_active_blog_author

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('wpcom_api_pre_get_active_blog_author') is found 1 times:

  • /class.json-api-endpoints.php line 1475
    				 *
    				 * @param bool|int $active_blog  Blog ID, or false by default.
    				 * @param int      $id           User ID.
    				 */
    				$active_blog = apply_filters( 'wpcom_api_pre_get_active_blog_author', false, $id );
    				if ( false === $active_blog ) {
    					$active_blog = get_active_blog_for_user( $id );
    				}
    				if ( ! empty( $active_blog ) ) {
    					$site_id = $active_blog->blog_id;
    				}