public function __construct()
 {
     parent::__construct(array('longname' => 'Custom Google Map Integrator', 'shortname' => 'Custom Google Map', 'optionname' => 'cgm_general_option', 'pluginfile' => __FILE__));
     $this->adminpage_url = "admin.php?page=" . $this->slug;
     add_action('after_setup_theme', array($this, 'after_setup_theme'));
     add_action('save_post', array($this, 'savePost'), 10, 2);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct(array('longname' => 'MoodArea', 'shortname' => 'moodarea', 'optionname' => 'moodarea_option', 'pluginfile' => __FILE__));
     $this->adminpage_url = "admin.php?page=" . $this->slug;
     add_action('wp_ajax_nopriv_moodarea-updateimage', array(&$this, 'ajax_updateImage'));
     add_action('wp_ajax_moodarea-updateimage', array(&$this, 'ajax_updateImage'));
     add_action('wp_enqueue_scripts', array($this, 'bindFrontendScripts'));
 }