Title: Code Control With 3.0.22
Last modified: January 2, 2018

---

# Code Control With 3.0.22

 *  Resolved [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-with-3-0-22/)
 * Hey there,
 * Another question about the code control.
 * So like my other thread ([https://wordpress.org/support/topic/code-control/](https://wordpress.org/support/topic/code-control/))
   I added the following:
 *     ```
       TP_Primo_Kirki::add_field( 'theme_config_id', array(
       	'type'        => 'code',
       	'settings'    => 'code_setting',
       	'label'       => esc_attr__( 'Code Control', 'textdomain' ),
       	'tooltip'     => esc_attr__('Description here.','tp-primo'),
       	'section'     => 'totalpress_footer_section',
       	'default'     => '1',
       	'choices'     => array(
       		'language' => 'php',
       	),
       ) );
       ```
   
 * I can see the code control box in the customizer. All is good. So now I try to
   add the following:
 * `<?php echo 'Hello World'; ?>`
 * into the code control and I see the following error message again:
 *     ```
       There are 2 errors which must be fixed before you can save.
        [checkbox]Update anyway, even though it might break your site?
       ```
   
 * So i check the box and the error message goes away and I hit publish.
 * In my footer I have the following:
 * `<?php echo get_theme_mod('code_setting') ;?>`
 * So I should see “Hello World”…however I do not see anything?
 * Am I doing something wrong? How do you insert php properly in the code control?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-with-3-0-22/#post-9828391)
 * Sorry by the way here is a link to an image that will show you waht I mean by
   the error: [https://i.imgur.com/oySRcOJ.png](https://i.imgur.com/oySRcOJ.png)
 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-with-3-0-22/#post-9830785)
 * Fixed on github, will be included in the next release 🙂
 *  Thread Starter [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-with-3-0-22/#post-9831181)
 * Great IU just updated the repo locally.
 * If you could please explain how do you insert php properly in the code control?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code Control With 3.0.22’ is closed to new replies.

 * ![](https://ps.w.org/kirki/assets/icon-256x256.jpg?rev=3518366)
 * [Kirki – Freeform Page Builder, Website Builder & Customizer](https://wordpress.org/plugins/kirki/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kirki/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kirki/)
 * [Active Topics](https://wordpress.org/support/plugin/kirki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kirki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kirki/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-with-3-0-22/#post-9831181)
 * Status: resolved