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.5

apply_filters('wpcom_api_pre_get_active_blog_author') is found 1 times:

  • /class.json-api-endpoints.php line 1548
    1544
    1545
    1546
    1547
    1548
    1549
    1550
    1551
    1552
    1553
    1554
    *
     * @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;
    }