WP HOOKS
akcjaod 5.0.0

enqueue_block_assets

Args 0Plik wp-includes/script-loader.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'enqueue_block_assets', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii