• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / AbstractPaymentMethodType::get_setting() – Get a setting from the settings array if set.

You appear to be a bot. Output may be restricted

Description

Get a setting from the settings array if set.

Usage

$mixed = AbstractPaymentMethodType::get_setting( $name, $default );

Parameters

$name
( string ) required – Setting name.
$default
( mixed ) optional – Value that is returned if the setting does not exist.

Returns

mixed

Source

File name: woocommerce/packages/woocommerce-blocks/src/Payments/Integrations/AbstractPaymentMethodType.php
Lines:

1 to 3 of 3
  protected function get_setting( $name, $default = '' ) {
    return isset( $this->settings[ $name ] ) ? $this->settings[ $name ] : $default;
  }
 

 View on GitHub View on Trac

Published: 21st August 2020 | Last updated: 10th December 2020

Primary Sidebar

Information

Function name: AbstractPaymentMethodType::get_setting
Class ref: AbstractPaymentMethodType
Plugin ref: WooCommerce
Version: 5.1.0
Sourcefile: packages/woocommerce-blocks/src/Payments/Integrations/AbstractPaymentMethodType.php
File ref: packages/woocommerce-blocks/src/Payments/Integrations/AbstractPaymentMethodType.php
Deprecated?: No
API Letters: A,G,S

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites