woocommerce_shortcode_product_page_force_rendering
woocommerce_shortcode_product_page_force_rendering
Appears in: woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('woocommerce_shortcode_product_page_force_rendering') is found 1 times:
- /includes/class-wc-shortcodes.php line 538
* @param bool $force_rendering Whether to override read permissions for unpublished products. `true` to force rendering the product page, `false` to block rendering, or `null` to use the default behavior. * @param int $product_id Product ID. * @return bool */ $force_rendering = apply_filters( 'woocommerce_shortcode_product_page_force_rendering', null, $product_id ); if ( isset( $force_rendering ) && ! $force_rendering ) { return ''; } $args = array( 'posts_per_page' => 1,