/home/techb158/balacoffee.com/wp-content/themes/Divi/includes/builder/plugin-compat
NameSizeModeActions
scripts/-0755rm
styles/-0755rm
advanced-custom-fields-pro.php1680644editdlrm
advanced-custom-fields.php93690644editdlrm
amazon-s3-and-cloudfront-pro.php10350644editdlrm
amazon-s3-and-cloudfront.php31930644editdlrm
autoptimize.php11330644editdlrm
caldera-forms.php12650644editdlrm
cartflows.php19220644editdlrm
cdn-enabler.php14720644editdlrm
coursepress.php10940644editdlrm
divi-filterable-blog-module.php10610644editdlrm
divi-module-code-snippet.php15880644editdlrm
divi-testimonial-slider.php13030644editdlrm
divi_layout_injector.php30930644editdlrm
divi_woo_layout_injector.php14020644editdlrm
dk-pdf.php19410644editdlrm
ds-divi-rocket.php10810644editdlrm
easy-digital-downloads.php45220644editdlrm
eventon.php32690644editdlrm
events-manager.php15620644editdlrm
final-tiles-grid-gallery-lite.php14620644editdlrm
gravityforms.php7320644editdlrm
gravityformssignature.php17070644editdlrm
ht-knowledge-base.php16800644editdlrm
imagify.php32120644editdlrm
insert-pages.php14500644editdlrm
jucra-acf-google-maps-for-divi.php12960644editdlrm
kvcore-idx.php9150644editdlrm
landing-pages.php10170644editdlrm
m-chart.php13100644editdlrm
mappress-google-maps-for-wordpress.php17440644editdlrm
megamenu.php16400644editdlrm
modern-events-calendar-lite.php11860644editdlrm
nex-forms-express-wp-form-builder.php13500644editdlrm
paid-memberships-pro.php13880644editdlrm
photo-gallery.php14040644editdlrm
pilotpress.php15810644editdlrm
popup-maker.php55440644editdlrm
relevanssi-premium.php2470644editdlrm
relevanssi.php18950644editdlrm
sellsy.php10870644editdlrm
seo-by-rank-math.php18360644editdlrm
sfwd-lms.php46160644editdlrm
sg-cachepress.php26680644editdlrm
siteorigin-panels.php14660644editdlrm
sitepress-multilingual-cms.php97470644editdlrm
table-of-contents-plus.php10440644editdlrm
the-events-calendar-community-events.php13520644editdlrm
the-events-calendar.php75480644editdlrm
toolbar-publish-button.php10390644editdlrm
woo-paypalplus.php13480644editdlrm
woocommerce.php111200644editdlrm
wordpress-mu-domain-mapping.php15710644editdlrm
wordpress-seo.php25490644editdlrm
wp-job-manager.php19300644editdlrm
wp-responsive-table.php12180644editdlrm
wp-rocket.php13750644editdlrm
wp-smush-pro.php1560644editdlrm
wp-smushit.php54730644editdlrm
wp-views.php32980644editdlrm
wp3d-models.php11060644editdlrm
wpml-sticky-links.php14320644editdlrm
yith-woocommerce-dynamic-pricing-and-discounts-premium.php21020644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/themes/Divi/includes/builder/plugin-compat/wp-views.php (3298B)
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();