ID, 'dismissed_wp_pointers', true)); $do_tour = !in_array ('eztoc_subscribe_pointer', $dismissed); if ($do_tour) { wp_enqueue_style ('wp-pointer'); wp_enqueue_script ('wp-pointer'); add_action('admin_print_footer_scripts', array($this, 'admin_print_footer_scripts')); add_action('admin_head', array($this, 'admin_head')); // Hook to admin head } } function admin_head () { ?> ' . sprintf (esc_html__('Thank You for using Easy TOC!', 'easy-table-of-contents'), self::DISPLAY_VERSION) . ''; $content .= '

' . esc_html__('Do you want the latest update on', 'easy-table-of-contents') . '' . esc_html__(' Easy TOC ', 'easy-table-of-contents') . '' . esc_html__('before others and some best resources on Easy TOC in a single email? - Free just for users of Easy TOC!', 'easy-table-of-contents').'

'; $content .= '
'; $options = array ( 'content' => $content, 'position' => array ('edge' => 'left', 'align' => 'left') ); } if ($show_pointer) { $this->eztoc_pointer_script ($id, $options, esc_html__('No Thanks', 'easy-table-of-contents'), $button2, $function); } } function get_admin_url($page, $tab) { $url = admin_url(); $url .= $page.'?tab='.$tab; return $url; } function eztoc_pointer_script ($id, $options, $button1, $button2=false, $function='') { ?>