WP HOOKS
filtrdynamicznyod 6.9.0

block_bindings_supported_attributes_{$block_type}

Args 1Plik wp-includes/block-bindings.php

Opis — z kodu źródłowego

Filters the supported block attributes for block bindings.

The dynamic portion of the hook name, $block_type, refers to the block type whose attributes are being filtered.

Parametry

ParametrTypOpis
$supported_block_attributesstring[]The block's attributes that are supported by block bindings.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'block_bindings_supported_attributes_{$block_type}', 'twoja_funkcja' );

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

Popularne w tej kategorii