This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wp_customize->add_setting( 'themeslug_time_setting_id', array( | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => '', | |
| 'default' => 1, | |
| ) ); | |
| $wp_customize->add_control( 'themeslug_time_setting_id', array( | |
| 'type' => 'time', | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'label' => __( 'Custom Time' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wp_customize->add_setting( 'core_color_setting_id', array( | |
| 'sanitize_callback' => 'themeslug_sanitize_hex_color', | |
| ) ); | |
| $wp_customize->add_control( | |
| new WP_Customize_Color_Control( $wp_customize, 'core_color_setting_id', | |
| array( | |
| 'label' => __( 'Core Color Setting' ), | |
| 'description' => __( 'Select a color for something' ), | |
| 'section' => 'custom_section', // Add a default or your own section |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wp_customize->add_setting( 'themeslug_media_setting_id', array( | |
| 'sanitize_callback' => 'absint', | |
| 'validate_callback' => 'themeslug_validate_image, | |
| ) ); | |
| $wp_customize->add_control( | |
| new WP_Customize_Media_Control( $wp_customize, 'themeslug_media_setting_id', array( | |
| 'label' => __( 'Custom Core Media Setting' ), | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'mime_type' => 'image', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Get the post type labels configuration | |
| * | |
| * @param string $post_type | |
| * @param string $singular_label | |
| * @param string $plural_label | |
| * | |
| * @return array | |
| */ | |
| function get_TODO_post_type_labels_config( $post_type, $singular_label, $plural_label ) { |
NewerOlder