JezK
Edit File: Gateways.php
<?php namespace WeDevs\Dokan\Vendor\SettingsApi\Abstracts; defined( 'ABSPATH' ) || exit; /** * Vendor Settings Payment processor. * * @since 3.7.10 */ abstract class Gateways { /** * Hook Order for setting rendering. * * @var int */ protected $hook_order = 10; /** * Settings Group Key for setting rendering. * * @var string */ protected $group = ''; /** * Constructor function. */ public function __construct() { add_filter( 'dokan_vendor_rest_payment_settings', [ $this, 'render_settings' ], $this->hook_order ); } /** * Render the settings page with tab, cad, fields. * * @since 3.7.10 * * @param array $settings Settings to render. * * @return array */ abstract public function render_settings( array $settings ): array; }