add_inline_data

ACTION wp-admin\includes\template.php (ligne 395) github
Fires after outputting the fields for the inline editor for posts and pages.

Paramètres

Entrée :
$post, $post_type_object
Sortie :
@param WP_Post      $post             The current post object.
@param WP_Post_Type $post_type_object The current post's post type object.

Utilisation

// Ajouter une fonction au hook action 'add_inline_data'
add_action('add_inline_data', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($post, $post_type_object) {
    // Votre code ici
    error_log('Hook add_inline_data déclenché');
}

Actualités

Chargement des actualités...