woocommerce_admin_onboarding_homepage_template

woocommerce_admin_onboarding_homepage_template

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_onboarding_homepage_template') is found 2 times:

  • /src/Admin/API/OnboardingTasks.php line 548
    			 * Modify the template/content of the default homepage.
    			 *
    			 * @param string $template The default homepage template.
    			 */
    			return apply_filters( 'woocommerce_admin_onboarding_homepage_template', $template );
    		}
    
    		$images   = self::sideload_homepage_images( $post_id, 3 );
    		$image_1  = ! empty( $images[0] ) ? $images[0] : '';
    		$image_2  = ! empty( $images[1] ) ? $images[1] : '';
    		$image_3  = ! empty( $images[2] ) ? $images[2] : '';
    
  • /src/Admin/API/OnboardingTasks.php line 569
     
    		<!-- wp:woocommerce/featured-product /-->';
    
    		/** This filter is documented in src/API/OnboardingTasks.php. */
    		return apply_filters( 'woocommerce_admin_onboarding_homepage_template', $template );
    	}
    
    	/**
    	 * Gets the possible industry images from the plugin folder for sideloading. If an image doesn't exist, other.jpg is used a fallback.
    	 *
    	 * @internal