woocommerce_product_template_csv_file_path

FILTER woocommerce\src\Admin\API\OnboardingTasks.php (ligne 365) github
Creates a product from a template name passed in through the template_name param.

Paramètres

Entrée :
$template_path, $template_name
Sortie :
@param WP_REST_Request $request Request data.
@return WP_REST_Response|WP_Error

Utilisation

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

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

Actualités

Chargement des actualités...