/
home
/
techb158
/
balacoffee.com
/
wp-content
/
themes
/
Divi-1
/
includes
/
builder
/
plugin-compat
/
/home/techb158/balacoffee.com/wp-content/themes/Divi-1/includes/builder/plugin-compat
mkdir
upload
Name
Size
Mode
Actions
scripts/
-
0755
rm
styles/
-
0755
rm
advanced-custom-fields-pro.php
168
0644
edit
dl
rm
advanced-custom-fields.php
9369
0644
edit
dl
rm
amazon-s3-and-cloudfront-pro.php
1035
0644
edit
dl
rm
amazon-s3-and-cloudfront.php
3193
0644
edit
dl
rm
autoptimize.php
1133
0644
edit
dl
rm
caldera-forms.php
1265
0644
edit
dl
rm
cartflows.php
1922
0644
edit
dl
rm
cdn-enabler.php
1472
0644
edit
dl
rm
coursepress.php
1094
0644
edit
dl
rm
divi-filterable-blog-module.php
1061
0644
edit
dl
rm
divi-module-code-snippet.php
1588
0644
edit
dl
rm
divi-testimonial-slider.php
1303
0644
edit
dl
rm
divi_layout_injector.php
3093
0644
edit
dl
rm
divi_woo_layout_injector.php
1402
0644
edit
dl
rm
dk-pdf.php
1941
0644
edit
dl
rm
ds-divi-rocket.php
1081
0644
edit
dl
rm
easy-digital-downloads.php
4522
0644
edit
dl
rm
eventon.php
3269
0644
edit
dl
rm
events-manager.php
1562
0644
edit
dl
rm
final-tiles-grid-gallery-lite.php
1462
0644
edit
dl
rm
gravityforms.php
732
0644
edit
dl
rm
gravityformssignature.php
1707
0644
edit
dl
rm
ht-knowledge-base.php
1680
0644
edit
dl
rm
imagify.php
3212
0644
edit
dl
rm
insert-pages.php
1450
0644
edit
dl
rm
jucra-acf-google-maps-for-divi.php
1296
0644
edit
dl
rm
kvcore-idx.php
915
0644
edit
dl
rm
landing-pages.php
1017
0644
edit
dl
rm
m-chart.php
1310
0644
edit
dl
rm
mappress-google-maps-for-wordpress.php
1744
0644
edit
dl
rm
megamenu.php
1640
0644
edit
dl
rm
modern-events-calendar-lite.php
1186
0644
edit
dl
rm
nex-forms-express-wp-form-builder.php
1350
0644
edit
dl
rm
paid-memberships-pro.php
1388
0644
edit
dl
rm
photo-gallery.php
1404
0644
edit
dl
rm
pilotpress.php
1581
0644
edit
dl
rm
popup-maker.php
5544
0644
edit
dl
rm
relevanssi-premium.php
247
0644
edit
dl
rm
relevanssi.php
1895
0644
edit
dl
rm
sellsy.php
1087
0644
edit
dl
rm
seo-by-rank-math.php
5972
0644
edit
dl
rm
sfwd-lms.php
4616
0644
edit
dl
rm
sg-cachepress.php
2668
0644
edit
dl
rm
siteorigin-panels.php
1466
0644
edit
dl
rm
sitepress-multilingual-cms.php
9747
0644
edit
dl
rm
table-of-contents-plus.php
1044
0644
edit
dl
rm
the-events-calendar-community-events.php
1352
0644
edit
dl
rm
the-events-calendar.php
7548
0644
edit
dl
rm
toolbar-publish-button.php
1039
0644
edit
dl
rm
woo-paypalplus.php
1348
0644
edit
dl
rm
woocommerce.php
11120
0644
edit
dl
rm
wordpress-mu-domain-mapping.php
1571
0644
edit
dl
rm
wordpress-seo.php
2549
0644
edit
dl
rm
wp-job-manager.php
1930
0644
edit
dl
rm
wp-responsive-table.php
1218
0644
edit
dl
rm
wp-rocket.php
1375
0644
edit
dl
rm
wp-smush-pro.php
156
0644
edit
dl
rm
wp-smushit.php
5050
0644
edit
dl
rm
wp-views.php
3298
0644
edit
dl
rm
wp3d-models.php
1106
0644
edit
dl
rm
wpml-sticky-links.php
1432
0644
edit
dl
rm
yith-woocommerce-dynamic-pricing-and-discounts-premium.php
2102
0644
edit
dl
rm
Edit:
/home/techb158/balacoffee.com/wp-content/themes/Divi-1/includes/builder/plugin-compat/wp-views.php
(3298B)
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Plugin compatibility for Toolset Views * * @since 3.20 * * @link https://toolset.com */ class ET_Builder_Plugin_Compat_ToolsetViews extends ET_Builder_Plugin_Compat_Base { /** * Constructor */ public function __construct() { $this->plugin_id = 'wp-views/wp-views.php'; $this->init_hooks(); } /** * Hook methods to WordPress * * Latest plugin version: 2.7.1 * * @return void */ public function init_hooks() { // Bail if there's no version found if ( ! $this->get_plugin_version() ) { return; } add_filter( 'et_builder_post_types', array( $this, 'add_post_type' ) ); add_filter( 'et_builder_third_party_post_types', array( $this, 'add_post_type' ) ); add_filter( 'et_builder_third_party_unqueriable_post_types', array( $this, 'add_post_type' ) ); $enabled = array( // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification 'vb' => et_()->array_get( $_GET, 'et_fb' ), 'bfb' => et_()->array_get( $_GET, 'et_bfb' ), // phpcs:enable ); if ( $enabled['vb'] && ! $enabled['bfb'] ) { // Fields and Views custom TinyMCE button doesn't work in VB and also generate an error. add_action( 'toolset_editor_add_form_buttons', '__return_false' ); } // I know what you're thinking .... can't check for 'edit_post' because too early // and don't have a post ID yet but will do inside the filter. if ( $enabled['vb'] && $enabled['bfb'] && current_user_can( 'edit_posts' ) ) { // Content templates not using Divi break the BFB, disable them. add_filter( 'get_post_metadata', array( $this, 'disable_views' ), 10, 4 ); } add_filter( 'et_builder_render_layout', array( $this, 'transform_shortcodes' ), 4 ); } /** * Add `view-template` post type. * * @param array $types * @return array */ public function add_post_type( $types ) { return array_merge( $types, array( 'view-template' ) ); } /** * Disable Views for a post. * * @param null|array|string $value The value get_metadata() should return - a single metadata value, * or an array of values. * @param int $object_id Object ID. * @param string $meta_key Meta key. * @param bool $single Whether to return only the first value of the specified $meta_key. * * @access public. * @return void */ public function disable_views( $value, $object_id, $meta_key, $single ) { if ( '_views_template' === $meta_key && current_user_can( 'edit_post', $object_id ) ) { return false; } return $value; } /** * Transform {!{ ... }!} shortcodes to [] ones. * * @since 4.0.10 * * @param string $content * * @return string */ public function transform_shortcodes( $content ) { /** * @see WPV_Frontend_Render_Filters::pre_process_shortcodes() * * @param string $content */ $content = apply_filters( 'wpv-pre-process-shortcodes', $content ); /** * @see Toolset_Shortcode_Transformer::replace_shortcode_placeholders_with_brackets() * * @param string $content */ $content = apply_filters( 'toolset_transform_shortcode_format', $content ); return $content; } } new ET_Builder_Plugin_Compat_ToolsetViews();
Save
cmd:
run