woocommerce_product_parent

FILTER woocommerce\includes\legacy\abstract-wc-legacy-product.php (ligne 421) github
Get the parent of the post.

Paramètres

Entrée :
absint( $this->get_post_data(
Sortie :
@return int

Utilisation

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

function ma_fonction_filtre(absint( $this->get_post_data() {
    // Modifier la valeur
    return absint( $this->get_post_data(;
}

Actualités

Chargement des actualités...