wp plugin and app fixes adn automation page update
This commit is contained in:
@@ -81,10 +81,10 @@ class Igny8Admin {
|
||||
|
||||
add_submenu_page(
|
||||
'igny8-dashboard',
|
||||
__('Controls', 'igny8-bridge'),
|
||||
__('Controls', 'igny8-bridge'),
|
||||
__('Settings', 'igny8-bridge'),
|
||||
__('Settings', 'igny8-bridge'),
|
||||
'manage_options',
|
||||
'igny8-controls',
|
||||
'igny8-settings',
|
||||
array($this, 'render_page')
|
||||
);
|
||||
|
||||
@@ -170,6 +170,13 @@ class Igny8Admin {
|
||||
'sanitize_callback' => array($this, 'sanitize_post_status'),
|
||||
'default' => 'draft'
|
||||
));
|
||||
|
||||
// Sync enabled toggle
|
||||
register_setting('igny8_bridge_controls', 'igny8_sync_enabled', array(
|
||||
'type' => 'boolean',
|
||||
'sanitize_callback' => 'absint',
|
||||
'default' => 1
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -290,8 +297,8 @@ class Igny8Admin {
|
||||
case 'igny8-connection':
|
||||
$template_file = IGNY8_BRIDGE_PLUGIN_DIR . 'admin/pages/connection.php';
|
||||
break;
|
||||
case 'igny8-controls':
|
||||
$template_file = IGNY8_BRIDGE_PLUGIN_DIR . 'admin/pages/controls.php';
|
||||
case 'igny8-settings':
|
||||
$template_file = IGNY8_BRIDGE_PLUGIN_DIR . 'admin/pages/settings.php';
|
||||
break;
|
||||
case 'igny8-sync':
|
||||
$template_file = IGNY8_BRIDGE_PLUGIN_DIR . 'admin/pages/sync.php';
|
||||
|
||||
Reference in New Issue
Block a user