get_settings() ); } /** * Update settings. */ public function update_settings() { // WooCommerce ayarlarını güncelle woocommerce_update_options( $this->get_settings() ); } /** * Get settings array. * * @return array */ public function get_settings() { $settings = array( array( 'title' => esc_html__( 'Affiliate Management for Ortiko Integration Settings', 'affiliate-management-for-ortiko' ), 'type' => 'title', 'desc' => esc_html__( 'Configure your Affiliate Management for Ortiko integration settings below.', 'affiliate-management-for-ortiko' ), 'id' => 'partnerhub_settings_title', ), array( 'title' => esc_html__( 'Integration ID', 'affiliate-management-for-ortiko' ), 'desc' => esc_html__( 'Enter your Affiliate Management for Ortiko Integration ID', 'affiliate-management-for-ortiko' ), 'id' => 'phub_integration_id', 'type' => 'text', 'default' => '', 'desc_tip' => true, ), array( 'title' => esc_html__( 'API Key', 'affiliate-management-for-ortiko' ), 'desc' => esc_html__( 'Enter your Affiliate Management for Ortiko API key', 'affiliate-management-for-ortiko' ), 'id' => 'phub_api_key', 'type' => 'password', 'default' => '', 'desc_tip' => true, ), array( 'title' => esc_html__( 'Enable Integration', 'affiliate-management-for-ortiko' ), 'desc' => esc_html__( 'Enable Affiliate Management for Ortiko integration', 'affiliate-management-for-ortiko' ), 'id' => 'phub_integration_enabled', 'type' => 'checkbox', 'default' => 'no', ), array( 'title' => esc_html__( 'Debug Mode', 'affiliate-management-for-ortiko' ), 'desc' => esc_html__( 'Enable debug mode for JavaScript tracking', 'affiliate-management-for-ortiko' ), 'id' => 'phub_debug_mode', 'type' => 'checkbox', 'default' => 'no', ), array( 'type' => 'sectionend', 'id' => 'partnerhub_settings_end', ), ); return apply_filters( 'partnerhub_woocommerce_settings', $settings ); } }