Text_Editor_Custom_Control

Class to create a custom tags control.

Defined (1)

The class is defined in the following location(s).

/lib/customizer/includes/text-editor-custom-control.php  
  1. class Text_Editor_Custom_Control extends WP_Customize_Control { 
  2. /** 
  3. * Render the content on the theme customizer page 
  4. */ 
  5. public function render_content() { 
  6. ?> 
  7. <label> 
  8. <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 
  9. <span class="description customize-control-description"><?php echo esc_attr( $this->description ); ?></span> 
  10. <?php 
  11. $settings = array( 
  12. 'textarea_name' => $this->id,  
  13. 'drag_drop_upload'=> true,  
  14. 'media_buttons' => false,  
  15. 'textarea_rows' => 10 
  16. ); 
  17.  
  18. wp_editor( $this->value(), $this->id, $settings ); 
  19. do_action( 'admin_print_footer_scripts' ); 
  20. ?> 
  21. </label> 
  22. <?php