woocommerce_admin_onboarding_industry_image

FILTER woocommerce\src\Admin\API\OnboardingTasks.php (ligne 583) github
Gets the possible industry images from the plugin folder for sideloading. If an image doesn't exist, other.jpg is used a fallback.

Paramètres

Entrée :
WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/other-small.jpg', $industry_slug
Sortie :
@return array An array of images by industry.

Utilisation

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

function ma_fonction_filtre(WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/other-small.jpg') {
    // Modifier la valeur
    return WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/other-small.jpg';
}

Actualités

Chargement des actualités...