public function pdfemb_init()
 {
     $options = $this->get_option_pdfemb();
     if ($options['pdfemb_tracking'] == 'on') {
         add_action('wp_ajax_nopriv_pdfemb_count_download', array($this, 'ajax_pdfemb_count_download'));
     }
     parent::pdfemb_init();
 }
Example #2
0
 protected function get_translation_array()
 {
     return array_merge(parent::get_translation_array(), array('poweredby' => get_site_option(self::$poweredby_optionname, false)));
 }