[wp-trac] [WordPress Trac] #38614: Text widget markup is not removable
WordPress Trac
noreply at wordpress.org
Fri Apr 14 06:40:00 UTC 2017
#38614: Text widget markup is not removable
--------------------------+------------------------------
Reporter: henry.wright | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.6.1
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by soulseekah):
Added a patch. Usage example:
{{{#!php
<?php
add_filter( 'widget_text_wrapper_before', function( $wrapper ) {
return '<div class="custom stuff">[';
} );
add_filter( 'widget_text_wrapper_after', function( $wrapper ) {
return']</div>';
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38614#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list