| @@ -80,16 +80,11 @@ | ||
| 80 | 80 | */ |
| 81 | 81 | require_once AYG_DIR . 'includes/functions.php'; |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * The class responsible for importing videos into the Gallery Builder galleries. | |
| 85 | - */ | |
| 86 | - require_once AYG_DIR . 'includes/import.php'; | |
| 87 | - | |
| 88 | - /** | |
| 89 | 84 | * The classes responsible for defining all actions that occur in the admin area. |
| 90 | 85 | */ |
| 91 | - require_once AYG_DIR . 'admin/admin.php'; | |
| 86 | + require_once AYG_DIR . 'admin/admin.php'; | |
| 92 | 87 | require_once AYG_DIR . 'admin/settings.php'; |
| 93 | 88 | |
| 94 | 89 | /** |
| 95 | 90 | * The class responsible for defining all actions that occur in the public-facing |
| @@ -143,11 +138,8 @@ | ||
| 143 | 138 | $this->loader->add_action( 'elementor/editor/after_enqueue_scripts', $admin, 'enqueue_scripts' ); |
| 144 | 139 | $this->loader->add_action( 'admin_menu', $admin, 'admin_menu' ); |
| 145 | 140 | $this->loader->add_action( 'admin_notices', $admin, 'admin_notices' ); |
| 146 | 141 | $this->loader->add_action( 'wp_ajax_ayg_save_api_key', $admin, 'ajax_callback_save_api_key' ); |
| 147 | - $this->loader->add_action( 'wp_ajax_ayg_save_gallery', $admin, 'ajax_callback_save_gallery' ); | |
| 148 | - $this->loader->add_action( 'wp_ajax_ayg_import_gallery', $admin, 'ajax_callback_import_gallery' ); | |
| 149 | - $this->loader->add_action( 'wp_ajax_ayg_delete_gallery', $admin, 'ajax_callback_delete_gallery' ); | |
| 150 | 142 | |
| 151 | 143 | $this->loader->add_filter( 'plugin_action_links_' . AYG_FILE_NAME, $admin, 'plugin_action_links' ); |
| 152 | 144 | |
| 153 | 145 | // Hooks specific to the settings page |
| @@ -170,11 +162,11 @@ | ||
| 170 | 162 | $public = new AYG_Public(); |
| 171 | 163 | |
| 172 | 164 | $this->loader->add_action( 'wp_enqueue_scripts', $public, 'register_styles' ); |
| 173 | 165 | $this->loader->add_action( 'wp_enqueue_scripts', $public, 'register_scripts' ); |
| 174 | - $this->loader->add_action( 'enqueue_block_assets', $public, 'enqueue_block_assets' ); | |
| 175 | - $this->loader->add_action( 'elementor/editor/after_enqueue_scripts', $public, 'enqueue_editor_assets' ); | |
| 176 | - $this->loader->add_action( 'elementor/preview/enqueue_scripts', $public, 'enqueue_editor_assets' ); | |
| 166 | + $this->loader->add_action( 'enqueue_block_editor_assets', $public, 'enqueue_block_editor_assets' ); | |
| 167 | + $this->loader->add_action( 'elementor/editor/after_enqueue_scripts', $public, 'enqueue_block_editor_assets' ); | |
| 168 | + $this->loader->add_action( 'elementor/preview/enqueue_scripts', $public, 'enqueue_block_editor_assets' ); | |
| 177 | 169 | $this->loader->add_action( 'wp_ajax_ayg_load_videos', $public, 'ajax_callback_load_videos' ); |
| 178 | 170 | $this->loader->add_action( 'wp_ajax_nopriv_ayg_load_videos', $public, 'ajax_callback_load_videos' ); |
| 179 | 171 | $this->loader->add_action( 'wp_ajax_ayg_set_cookie', $public, 'set_gdpr_cookie' ); |
| 180 | 172 | $this->loader->add_action( 'wp_ajax_nopriv_ayg_set_cookie', $public, 'set_gdpr_cookie' ); |
| @@ -184,9 +176,9 @@ | ||
| 184 | 176 | // Hooks specific to the cron jobs |
| 185 | 177 | $cron = new AYG_Public_Cron(); |
| 186 | 178 | |
| 187 | 179 | $this->loader->add_action( 'wp', $cron, 'schedule_events' ); |
| 188 | - $this->loader->add_action( 'ayg_cron_schedule', $cron, 'cron_event' ); | |
| 180 | + $this->loader->add_action( 'ayg_schedule_weekly', $cron, 'cron_event' ); | |
| 189 | 181 | |
| 190 | 182 | $this->loader->add_filter( 'cron_schedules', $cron, 'cron_schedules' ); |
| 191 | 183 | } |
| 192 | 184 | |