experimental_woocommerce_admin_payment_reactify_render_sections

FILTER woocommerce\includes\admin\settings\class-wc-settings-payment-gateways.php (ligne 195) github
Modify the optional set of payments settings sections to be rendered using React. This filter allows plugins to add or remove optional sections (typically offline gateways) that should be rendered using React. Sections should be identified by their gateway IDs. Note: The main Payments page ("main") and the Offline overview ("offline") are always React-only and cannot be disabled via this filter.

Paramètres

Entrée :
$optional_reactified_sections
Sortie :
@param array $sections List of section identifiers to be rendered using React.

Utilisation

// Modifier la valeur avec le filtre 'experimental_woocommerce_admin_payment_reactify_render_sections'
add_filter('experimental_woocommerce_admin_payment_reactify_render_sections', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($optional_reactified_sections) {
    // Modifier la valeur
    return $optional_reactified_sections;
}

Actualités

Chargement des actualités...