PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.0
Kubio AI Page Builder v2.8.0
2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / integrations / woocommerce-basic / utils.php
kubio / lib / integrations / woocommerce-basic Last commit date
block-editor-settings.php 4 years ago sidebar.php 1 year ago templates-filters.php 1 month ago utils.php 2 years ago woocommerce-basic.php 2 years ago
utils.php
34 lines
1 <?php
2
3 use Kubio\Flags;
4
5 function kubio_has_kubio_woocommerce_support() {
6 $has_support = current_theme_supports( 'kubio-woocommerce' );
7
8 if ( Flags::get( 'kubio_installed_via_fresh_site', false ) ) {
9 $has_support = true;
10 }
11
12 return apply_filters( 'kubio/woocommerce/has-kubio-specific-support', $has_support );
13 }
14
15
16 function kubio_get_woocommerce_content() {
17
18 if ( is_single() ) {
19
20 return WC_Shortcodes::product_page(
21 array(
22 'id' => get_the_ID(),
23 'show_title' => 0,
24 )
25 );
26 }
27
28 ob_start();
29 add_filter( 'woocommerce_show_page_title', '__return_false' );
30 woocommerce_content();
31
32 return ob_get_clean();
33 }
34