esc_html__( 'Hooks Capture Options', '0-day-analytics' ), 'id' => 'hooks-capture-options-settings-tab', 'type' => 'tab-title', ) ); Settings::build_option( array( 'type' => 'header', 'id' => 'hooks-capture-settings-options', 'title' => \esc_html__( 'Hooks Capture Module', '0-day-analytics' ), ) ); Settings::build_option( array( 'name' => \esc_html__( 'Enable Hooks Capture Module', '0-day-analytics' ), 'id' => 'hooks_capture_module_enabled', 'type' => 'checkbox', 'hint' => \esc_html__( 'Monitor WordPress hooks and capture execution data. If disabled, the Hooks Capture and Hooks Management menu items will be hidden.', '0-day-analytics' ), 'toggle' => '#advana_hooks_capture_settings-item', 'default' => Settings::get_option( 'hooks_capture_module_enabled' ), ) ); ?>
\esc_html__( 'Disabled', '0-day-analytics' ), ); foreach ( $schedules as $schedule => $text ) { $options[ $schedule ] = $text['display']; } Settings::build_option( array( 'name' => \esc_html__( 'Hooks Capture Auto-cleanup', '0-day-analytics' ), 'id' => 'advana_hooks_capture_clear', 'type' => 'select', 'options' => $options, 'default' => Settings::get_option( 'advana_hooks_capture_clear' ), 'hint' => \esc_html__( 'Automatically delete old captured hook data to prevent database bloat. Recommended: weekly or daily.', '0-day-analytics' ), ) ); Settings::build_option( array( 'type' => 'header', 'id' => 'hook-groups-management', 'title' => \esc_html__( 'Hook Groups Management', '0-day-analytics' ), ) ); Settings::build_option( array( 'name' => \esc_html__( 'Create and manage hook groups for better organization and visual identification of captured hooks.', '0-day-analytics' ), 'id' => 'hook_groups_description', 'type' => 'html', 'html' => '
', ) ); // Load existing groups if ( \class_exists( '\ADVAN\Entities\Hook_Groups_Entity' ) ) { $groups = Hook_Groups_Entity::get_groups_array(); ?> $group ) { ?>

esc_html__( 'Group Name:', '0-day-analytics' ), 'id' => 'group-name', 'type' => 'text', ) ); Settings::build_option( array( 'name' => esc_html__( 'Color:', '0-day-analytics' ), 'id' => 'group-color', 'type' => 'color', 'default' => '#007cba', ) ); Settings::build_option( array( 'name' => esc_html__( 'Description:', '0-day-analytics' ), 'id' => 'group-description', 'type' => 'textarea', 'default' => '', ) ); ?>