woocommerce_admin_payment_gateway_suggestion_specs

woocommerce_admin_payment_gateway_suggestion_specs

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_payment_gateway_suggestion_specs') is found 4 times:

  • /src/Admin/Features/PaymentGatewaySuggestions/Init.php line 84
    		 * @since 6.4.0
    		 *
    		 * @param array Gateway specs.
    		 */
    		$specs   = apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', $specs );
    		$results = EvaluateSuggestion::evaluate_specs( $specs );
    		return $results['suggestions'];
    	}
    
    	/**
    	 * Delete the specs transient.
    
  • /src/Admin/Features/PaymentGatewaySuggestions/Init.php line 101
    	 * Get specs or fetch remotely if they don't exist.
    	 */
    	public static function get_specs() {
    		if ( 'no' === get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) ) {
    			return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
    		}
    		$specs = PaymentGatewaySuggestionsDataSourcePoller::get_instance()->get_specs_from_data_sources();
    
    		// Fetch specs if they don't yet exist.
    		if ( false === $specs || ! is_array( $specs ) || 0 === count( $specs ) ) {
    			return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
    
  • /src/Admin/Features/PaymentGatewaySuggestions/Init.php line 107
    		$specs = PaymentGatewaySuggestionsDataSourcePoller::get_instance()->get_specs_from_data_sources();
    
    		// Fetch specs if they don't yet exist.
    		if ( false === $specs || ! is_array( $specs ) || 0 === count( $specs ) ) {
    			return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
    		}
    
    		return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', $specs );
    	}
    
    	/**
    
  • /src/Admin/Features/PaymentGatewaySuggestions/Init.php line 110
    		if ( false === $specs || ! is_array( $specs ) || 0 === count( $specs ) ) {
    			return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
    		}
    
    		return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', $specs );
    	}
    
    	/**
    	 * Check if suggestions should be shown in the settings screen.
    	 *
    	 * @return bool