wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_custom_css_remove_filters › WordPress Function

Seit7.0.0
Veraltetn/v
wp_custom_css_remove_filters ( Keine Parameter )
Zugriff:
  • private
Definiert in:
Codex:

Removes the filters that 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).


Quellcode

function wp_custom_css_remove_filters() {
	remove_filter( 'content_save_pre', 'wp_strip_custom_css_from_blocks', 8 );
	remove_filter( 'content_filtered_save_pre', 'wp_strip_custom_css_from_blocks', 8 );
}