{$type}_upload_iframe_src

FILTER wp-admin\includes\media.php (ligne 729) github
Filters the upload iframe source URL for a specific media type. The dynamic portion of the hook name, `$type`, refers to the type of media uploaded. Possible hook names include:  - `image_upload_iframe_src`  - `media_upload_iframe_src`

Paramètres

Entrée :
$upload_iframe_src
Sortie :
@param string $upload_iframe_src The upload iframe source URL.

Utilisation

// Modifier la valeur avec le filtre '{$type}_upload_iframe_src'
add_filter('{$type}_upload_iframe_src', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($upload_iframe_src) {
    // Modifier la valeur
    return $upload_iframe_src;
}

Actualités

Chargement des actualités...