Withdrawal::available_withdraw_methods()


Return

(mixed|array) Return only enabled methods


Source

File: classes/Withdrawal.php

	public function available_withdraw_methods() {
		$withdraw_options = $this->get_options();
		$methods          = $this->withdraw_methods();

		foreach ( $methods as $method_id => $method ) {
			$is_enable = (bool) dozent_array_get( $method_id . ".enabled", $withdraw_options );

			if ( ! $is_enable ) {
				unset( $methods[ $method_id ] );
			}
		}

		return $methods;
	}