Fires after enqueuing block assets for both editor and front-end. Call `add_action` on any hook before 'wp_enqueue_scripts'. In the function call you supply, simply use `wp_enqueue_script` and `wp_enqueue_style` to add your functionality to the Gutenberg editor. @since 5.0.0
N/A
Sortie :
// Ajouter une fonction au hook action 'enqueue_block_assets'
add_action('enqueue_block_assets', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook enqueue_block_assets déclenché');
}
Chargement des actualités...