Changeset 46813 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
- Timestamp:
- 12/04/2019 03:57:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
r46613 r46813 206 206 ); 207 207 208 /* Enable Header Search --------- */208 /* Enable Header Search ----------------------------------------------- */ 209 209 210 210 $wp_customize->add_setting( … … 224 224 'priority' => 10, 225 225 'label' => __( 'Show search in header', 'twentytwenty' ), 226 ) 227 ); 228 229 /* Show author bio ---------------------------------------------------- */ 230 231 $wp_customize->add_setting( 232 'show_author_bio', 233 array( 234 'capability' => 'edit_theme_options', 235 'default' => true, 236 'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ), 237 ) 238 ); 239 240 $wp_customize->add_control( 241 'show_author_bio', 242 array( 243 'type' => 'checkbox', 244 'section' => 'options', 245 'priority' => 10, 246 'label' => __( 'Show author bio', 'twentytwenty' ), 226 247 ) 227 248 );
Note: See TracChangeset
for help on using the changeset viewer.