/**
  * Initialization actions
  */
 public function init()
 {
     $this->help_text(__('If you need to add scripts to your header, you should enter them here.', 'carbon_fields'));
     add_action('wp_head', array($this, 'print_scripts'));
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * Initialization actions
  */
 public function init()
 {
     $this->help_text($this->get_default_help_text());
     add_action($this->get_hook_name(), array($this, 'print_scripts'));
     parent::init();
 }
 /**
  * Initialization actions
  */
 public function init()
 {
     $this->help_text(__('If you need to add scripts to your footer (like Google Analytics tracking code), you should enter them in this box.', 'carbon_fields'));
     add_action('wp_footer', array($this, 'print_scripts'));
     parent::init();
 }