translations_api

translations_api

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('translations_api') is found 1 times:

  • /wp-admin/includes/translation-install.php line 50
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    * @param false|array $result The result array. Default false.
     * @param string      $type   The type of translations being requested.
     * @param object      $args   Translation API arguments.
     */
    $res = apply_filters( 'translations_api', false, $type, $args );
     
    if ( false === $res ) {
        $url      = 'http://api.wordpress.org/translations/' . $type . '/1.0/';
        $http_url = $url;
        $ssl      = wp_http_supports( array( 'ssl' ) );
        if ( $ssl ) {