disable html in description
-
I tried this in both my child theme and parent theme but html options still show in Editor for Ad Description. Is there a new way?
add_filter( "adverts_form_load", function( $form ) { if( $form["name"] != "advert" ) { return $form; } foreach( $form["field"] as $k => $field ) { if( $field["name"] == "post_content" ) { $form["field"][$k]["filter"] = array( array( "name" => "strip_tags" ) ); } } return $form; } ); add_action( "init", function( ) { adverts_form_add_filter( "strip_tags", array( "description" => "strip_tags", "callback" => "strip_tags" ) ); } );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘disable html in description’ is closed to new replies.