Changes between Initial Version and Version 2 of Ticket #26636
- Timestamp:
- 12/16/2013 08:38:23 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26636
- Property Cc JPollock412@… added
- Property Keywords has-patch added
-
Property
Component
changed from
General
toTemplate
-
Ticket #26636 – Description
initial v2 3 3 Here is an example use for the filter I am proposing to add: 4 4 5 {{{ 6 function slug_mobile_sidebar( $name ) { 7 if ( wp_is_mobile() ) { 8 $name = 'mobile'; 9 } 5 10 6 function slug_mobile_sidebar( $name ) { 7 if ( wp_is_mobile() ) { 8 $name = mobile; 11 return $name; 9 12 } 10 } 11 add_filter( 'the_sidebar', 'slug_mobile_sidebar'); 13 add_filter( 'the_sidebar', 'slug_mobile_sidebar' ); 14 }}} 12 15 13 16