Update dashboard JS and frontend class
This commit is contained in:
1 parent
48c7d23261
commit
2b1424d127
8 files changed
+245
-98
No files matched your search
@@ -173,9 +173,7 @@ class HSSM_Main {
|
||||
add_action( 'admin_menu', array( $this, 'add_admin_menus' ) );
|
||||
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_assets' ) );
|
||||
|
||||
// AJAX hooks for authenticated users
|
||||
// Note: Main AJAX handlers are in HSSM_Frontend class
|
||||
add_action( 'wp_ajax_hssm_send_preview_email', array( $this, 'ajax_send_preview_email' ) );
|
||||
// AJAX hooks live on HSSM_Frontend. Preview email is still a coming-soon UI stub.
|
||||
|
||||
// Cron hooks for scheduled slides
|
||||
add_action( 'hssm_check_scheduled_slides', array( $this, 'check_scheduled_slides' ) );
|
||||
@@ -456,6 +454,7 @@ class HSSM_Main {
|
||||
'hssm_preview_page_slug' => 'slide-preview',
|
||||
'hssm_manager_page_slug' => 'slide-manager',
|
||||
'hssm_api_keys' => array( wp_generate_password( 32, false ) ), // Generate initial API key
|
||||
'hssm_client_api_key' => '',
|
||||
);
|
||||
|
||||
foreach ( $default_options as $option_name => $option_value ) {
|
||||
@@ -482,6 +481,7 @@ class HSSM_Main {
|
||||
'hssm_preview_page_slug',
|
||||
'hssm_manager_page_slug',
|
||||
'hssm_api_keys',
|
||||
'hssm_client_api_key',
|
||||
'hssm_notification_settings',
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user