wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_custom_css_kses_init_filters › WordPress Function

Od7.0.0
Przestarzałyn/a
› wp_custom_css_kses_init_filters ( Brak parametrów )
Dostęp:
  • private
Zdefiniowane na:
Codex:

Adds the filters to strip custom CSS from block content on save.

Priority of 8 to run before wp_filter_global_styles_post (priority 9) and wp_filter_post_kses (priority 10).


Źródło

function wp_custom_css_kses_init_filters() {
	add_filter( 'content_save_pre', 'wp_strip_custom_css_from_blocks', 8 );
	add_filter( 'content_filtered_save_pre', 'wp_strip_custom_css_from_blocks', 8 );
}