From 3be014035016c5dab2849f2759013ca952d66c28 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 27 Jul 2018 15:35:08 -0400 Subject: [PATCH] Make copyright holder configurable --- footer.php | 2 +- inc/customizer.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/footer.php b/footer.php index 966ee5f..1233f18 100644 --- a/footer.php +++ b/footer.php @@ -15,7 +15,7 @@ diff --git a/inc/customizer.php b/inc/customizer.php index 661462a..6a1ab01 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -25,6 +25,17 @@ function jeremy_wordpress_theme_customize_register( $wp_customize ) { 'render_callback' => 'jeremy_wordpress_theme_customize_partial_blogdescription', ) ); } + + $wp_customize->add_setting( 'copyright_holder', array( + 'default' => '', + 'sanitize_callback' => 'sanitize_text_field' + ) ); + + $wp_customize->add_control( 'copyright_holder_control', array( + 'label' => __( 'Copyright Holder', 'jeremy-wordpress-theme' ), + 'section' => 'title_tagline', + 'settings' => 'copyright_holder', + ) ); } add_action( 'customize_register', 'jeremy_wordpress_theme_customize_register' );