les', 100 ); } /** * Register all of the hooks related to the admin area functionality * of the plugin. * * @since 1.0.0 * @access private * @return void */ private function define_admin_hooks() { if ( ! is_admin() ) { return; } require_once JOINCHAT_DIR . 'admin/class-joinchat-admin.php'; require_once JOINCHAT_DIR . 'admin/class-joinchat-admin-page.php'; require_once JOINCHAT_DIR . 'admin/class-joinchat-admin-onboard.php'; $this->loader->add_filter( 'option_page_capability_joinchat', 'Joinchat_Util', 'capability' ); $plugin_admin = new Joinchat_Admin(); $this->loader->add_action( 'admin_init', $plugin_admin, 'register_setting' ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'register_styles' ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'register_scripts' ); $this->loader->add_action( 'admin_notices', $plugin_admin, 'notices' ); $this->loader->add_action( 'wp_ajax_joinchat_notice_dismiss', $plugin_admin, 'ajax_notice_dismiss' ); // Post meta. $this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'add_meta_boxes' ); $this->loader->add_action( 'save_post', $plugin_admin, 'save_meta', 10, 2 ); // Term meta. $this->loader->add_action( 'load-term.php', $plugin_admin, 'add_term_meta_boxes' ); $this->loader->add_action( 'load-edit-tags.php', $plugin_admin, 'add_term_save_meta' ); $this->loader->add_action( 'update_option_joinchat', $plugin_admin, 'clear_cache', 100 ); // Plugins page. $this->loader->add_filter( 'plugin_action_links_' . JOINCHAT_BASENAME, $plugin_admin, 'settings_link' ); $this->loader->add_filter( 'plugin_row_meta', $plugin_admin, 'plugin_links', 10, 2 ); // Privacy Policy Guide. $this->loader->add_action( 'admin_init', $plugin_admin, 'add_privacy_message' ); $plugin_page = new Joinchat_Admin_Page(); $this->loader->add_action( 'admin_menu', $plugin_page, 'add_menu' ); $this->loader->add_action( 'admin_init', $plugin_page, 'setting_fields' ); $this->loader->add_action( 'load-settings_page_joinchat', $plugin_page, 'page_hooks' ); // Settings submenu. $this->loader->add_action( 'load-toplevel_page_joinchat', $plugin_page, 'page_hooks' ); // Joinchat menu. $plugin_onboard = new Joinchat_Admin_Onboard(); $this->loader->add_action( 'admin_menu', $plugin_onboard, 'add_menu' ); $this->loader->add_action( 'admin_head', $plugin_onboard, 'remove_menu' ); $this->loader->add_action( 'load-settings_page_joinchat-onboard', $plugin_onboard, 'page_hooks' ); // Settings submenu. $this->loader->add_action( 'load-joinchat_page_joinchat-onboard', $plugin_onboard, 'page_hooks' ); // Joinchat submenu. $this->loader->add_action( 'wp_ajax_joinchat_onboard', $plugin_onboard, 'save' ); } /** * Register all of the hooks related to the public-facing functionality * of the plugin. * * @since 1.0.0 * @access private * @return void */ private function define_public_hooks() { global $pagenow; if ( is_admin() || 'wp-login.php' === $pagenow ) { return; } require_once JOINCHAT_DIR . 'public/class-joinchat-public.php'; $plugin_public = new Joinchat_Public(); $this->loader->add_filter( 'joinchat_settings', $plugin_public, 'get_settings' ); $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); $this->loader->add_action( 'wp_footer', $plugin_public, 'footer_html' ); $this->loader->add_action( 'wp_footer', $plugin_public, 'enqueue_qr_script', 5 ); // Actions (only) for preview. $this->loader->add_action( 'joinchat_preview_footer', $plugin_public, 'footer_html' ); $this->loader->add_action( 'joinchat_preview_footer', $plugin_public, 'enqueue_qr_script', 5 ); } /** * Register all of the hooks related to render Joinchat preview. * * Run on "init" to check user capability * * @since 5.0.0 * @access public * @return void */ public function define_preview_hooks() { if ( ! isset( $_GET['joinchat-preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } if ( ! current_user_can( Joinchat_Util::capability() ) ) { return; } require_once JOINCHAT_DIR . 'public/class-joinchat-preview.php'; $plugin_preview = new Joinchat_Preview(); $this->loader->add_filter( 'template_include', $plugin_preview, 'blank_template', PHP_INT_MAX ); $this->loader->add_filter( 'get_post_metadata', $plugin_preview, 'disable_postmeta', 1000, 3 ); $this->loader->add_filter( 'show_admin_bar', $plugin_preview, 'hide_admin_bar', 1000 ); $this->loader->add_filter( 'joinchat_show', $plugin_preview, 'always_show', 1000 ); $this->loader->add_filter( 'joinchat_classes', $plugin_preview, 'preview_classes', 10, 2 ); $this->loader->add_filter( 'joinchat_content', $plugin_preview, 'preview_content' ); $this->loader->add_filter( 'joinchat_template', $plugin_preview, 'preview_template' ); $this->loader->add_filter( 'joinchat_inline_style', $plugin_preview, 'inline_style' ); $this->loader->add_action( 'wp_print_scripts', $plugin_preview, 'remove_all_scripts', 1000 ); $this->loader->add_action( 'wp_print_styles', $plugin_preview, 'remove_all_styles', 1000 ); $this->loader->add_action( 'joinchat_preview_header', $plugin_preview, 'preview_header' ); } /** * Register all of the hooks related to the premium info. * * @since 5.0.0 * @access private * @return void */ private function define_premium_hooks() { if ( ! is_admin() ) { return; } require_once JOINCHAT_DIR . 'admin/class-joinchat-premium.php'; $plugin_premium = new Joinchat_Premium(); $this->loader->add_filter( 'plugin_action_links_' . JOINCHAT_BASENAME, $plugin_premium, 'action_link' ); $this->loader->add_filter( 'joinchat_admin_tabs', $plugin_premium, 'admin_tab', 1000 ); $this->loader->add_filter( 'joinchat_tab_premium_sections', $plugin_premium, 'tab_sections' ); $this->loader->add_filter( 'joinchat_section_output', $plugin_premium, 'section_ouput', 10, 2 ); $this->loader->add_action( 'joinchat_admin_header', $plugin_premium, 'header_coupon' ); } /** * Run the loader to execute all of the hooks with WordPress. * * @since 1.0.0 * @since 3.0.0 Added actions * @return void */ public function run() { do_action( 'joinchat_run_pre', $this ); $this->loader->run(); do_action( 'joinchat_run_pos', $this ); } /** * The reference to the class that orchestrates the hooks with the plugin. * * @since 1.0.0 * @return Joinchat_Loader Orchestrates the hooks of the plugin. */ public function get_loader() { return $this->loader; } }
Fatal error: Uncaught Error: Class 'Joinchat' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/creame-whatsapp-me/joinchat.php:54 Stack trace: #0 /var/www/html/helitower.com.br/web/wp-content/plugins/creame-whatsapp-me/joinchat.php(60): run_joinchat() #1 /var/www/html/helitower.com.br/web/wp-settings.php(517): include_once('/var/www/html/h...') #2 /var/www/html/helitower.com.br/web/wp-config.php(99): require_once('/var/www/html/h...') #3 /var/www/html/helitower.com.br/web/wp-load.php(50): require_once('/var/www/html/h...') #4 /var/www/html/helitower.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/h...') #5 /var/www/html/helitower.com.br/web/index.php(18): require('/var/www/html/h...') #6 {main} thrown in /var/www/html/helitower.com.br/web/wp-content/plugins/creame-whatsapp-me/joinchat.php on line 54

Warning: include(): Failed opening '/var/www/html/helitower.com.br/web/wp-content/languages/pt_BR.l10n.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/helitower.com.br/web/wp-includes/l10n/class-wp-translation-file-php.php on line 24