image_add_caption_shortcode

FILTER wp-admin\includes\media.php (ligne 249) github
Filters the image HTML markup including the caption shortcode.

Paramètres

Entrée :
$shcode, $html
Sortie :
@param string $shcode The image HTML markup with caption shortcode.
@param string $html   The image HTML markup.

Utilisation

// Modifier la valeur avec le filtre 'image_add_caption_shortcode'
add_filter('image_add_caption_shortcode', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...