wpcom_api_pre_get_active_blog_author
wpcom_api_pre_get_active_blog_author
Appears in: jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8, jetpack.13.8.1, jetpack.13.9.1, jetpack.14.0
Hook Type: filter
Displaying hooks found in version: jetpack.14.0apply_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; }