WP HOOKS

Skrypty i style

Hooki ładowania skryptów i arkuszy stylów.

6 akcji19 filtrówrazem 25

Popularne w tej kategorii

Modyfikuje tag <script> generowany przez WordPress — pozwala dodać atrybuty async lub defer.

Właściwe miejsce na wczytanie skryptów i arkuszy stylów na froncie witryny za pomocą wp_enqueue_script() i wp_enqueue_style().

Wszystkie hooki

bulk_action_observer_idsfiltr

Filters the array of field name attributes for bulk actions.

enqueue_block_assetsakcja

Fires after enqueuing block assets for both editor and front-end.

heartbeat_settingsfiltr

Filters the Heartbeat settings.

mejs_settingsfiltr

Filters the MediaElement configuration settings.

print_admin_stylesfiltr

Filters whether to print the admin styles.

print_footer_scriptsfiltr

Filters whether to print the footer scripts.

print_head_scriptsfiltr

Filters whether to print the head scripts.

print_late_stylesfiltr

Filters whether to print the styles queued too late for the HTML head.

print_scripts_arrayfiltr

Filters the list of script dependencies left to print.

print_styles_arrayfiltr

Filters the array of enqueued styles before processing for output.

script_loader_srcfiltr

Filters the script loader source.

script_loader_tagfiltr

Filters the HTML script tag of an enqueued script.

should_load_block_assets_on_demandfiltr

Filters whether block styles should be loaded on demand.

should_load_block_editor_scripts_and_stylesfiltr

Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.

should_load_separate_core_block_assetsfiltr

Filters whether block styles should be loaded separately.

style_loader_srcfiltr

Filters an enqueued style's fully-qualified URL.

style_loader_tagfiltr

Filters the HTML link tag of an enqueued style.

styles_inline_size_limitfiltr

The maximum size of inlined styles in bytes.

wp_default_scriptsakcjareferencja

Fires when the WP_Scripts instance is initialized.

wp_default_stylesakcjareferencja

Fires when the WP_Styles instance is initialized.

wp_enqueue_scriptsakcja

Fires when scripts and styles are enqueued.

wp_inline_script_attributesfiltr

Filters attributes to be added to a script tag.

wp_print_footer_scriptsakcja

Fires when footer scripts are printed.

wp_print_scriptsakcja

Fires before scripts in the $handles queue are printed.

wp_script_attributesfiltr

Filters attributes to be added to a script tag.