woocommerce_admin_payment_gateway_suggestion_specs хук-фильтрWC 1.0

Get specs or fetch remotely if they don't exist.

Использование

add_filter( 'woocommerce_admin_payment_gateway_suggestion_specs', 'wp_kama_woocommerce_admin_payment_gateway_suggestion_specs_filter' );

/**
 * Function for `woocommerce_admin_payment_gateway_suggestion_specs` filter-hook.
 * 
 * @param  $DefaultPaymentGateways::get_all 
 *
 * @return 
 */
function wp_kama_woocommerce_admin_payment_gateway_suggestion_specs_filter( $DefaultPaymentGateways::get_all ){

	// filter...
	return $DefaultPaymentGateways::get_all;
}
$DefaultPaymentGateways::get_all
-

Где вызывается хук

Init::get_specs()
woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php 78
return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php 84
return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', DefaultPaymentGateways::get_all() );
woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php 87
return apply_filters( 'woocommerce_admin_payment_gateway_suggestion_specs', $specs );

Где используется хук в WooCommerce

Использование не найдено.