isset( $_POST['order_lookup_enabled'] ), 'write_actions_enabled' => isset( $_POST['write_actions_enabled'] ), ) ); add_settings_error( 'agentmatica', 'support_settings_saved', __( 'Post-purchase support settings saved.', 'agentmatica-mcp-connector' ), 'updated' ); } } public static function enqueue_assets( string $hook ): void { if ( 'settings_page_' . self::PAGE_SLUG !== $hook ) { return; } wp_enqueue_style( 'agentmatica-admin', plugins_url( 'assets/admin.css', AGENTMATICA_PLUGIN_FILE ), array(), AGENTMATICA_VERSION ); wp_enqueue_script( 'agentmatica-admin', plugins_url( 'assets/admin.js', AGENTMATICA_PLUGIN_FILE ), array(), AGENTMATICA_VERSION, true ); } public static function render_page(): void { if ( ! current_user_can( 'manage_options' ) ) { wp_die( esc_html__( 'You do not have permission to access this page.', 'agentmatica-mcp-connector' ) ); } $token_state = Agentmatica_Auth::ensure_integration_token(); $endpoint = Agentmatica_Auth::get_mcp_endpoint_url(); $ucp_profile = Agentmatica_Auth::get_ucp_profile_url(); $fresh_token = self::$fresh_token; $has_token = $token_state['hash'] !== '' || $fresh_token; $all_modules = Agentmatica_Module_Registry::get_modules(); $ability_names = Agentmatica_Abilities::get_ability_names(); $llms_enabled = Agentmatica_Llms_Txt::is_enabled(); $llms_url = Agentmatica_Llms_Txt::get_public_url(); $support = Agentmatica_Support_Settings::get_store_policy(); settings_errors( 'agentmatica' ); ?>

 | 

', 'agentmatica-mcp-connector' ); ?>

is_available() ) { return __( 'Unavailable (install required plugin)', 'agentmatica-mcp-connector' ); } if ( $module->is_active() ) { return __( 'Active', 'agentmatica-mcp-connector' ); } return __( 'Inactive', 'agentmatica-mcp-connector' ); } private static function module_status_class( Agentmatica_Module_Interface $module ): string { if ( $module->is_active() ) { return 'agentmatica-status-active'; } if ( ! $module->is_available() ) { return 'agentmatica-status-unavailable'; } return 'agentmatica-status-disabled'; } }