PATH:
home
/
letacommog
/
broderie
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
plugin-compat
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } /** * Compatibility for Events Manager plugin. * * @since 3.10 * * @link https://wordpress.org/plugins/events-manager/ */ class ET_Builder_Plugin_Compat_Events_Manager extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 3.10 */ public function __construct() { $this->plugin_id = 'events-manager/events-manager.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * * @since 3.10 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_filter( 'em_event_output_placeholder', array( $this, 'maybe_filter_content' ), 10, 4 ); add_filter( 'em_location_output_placeholder', array( $this, 'maybe_filter_content' ), 10, 4 ); } /** * Pass the single event content through et_fb_app_boot() since Events Manager skips usual * `the_content` filters. * * @since 3.10 * * @param string $replace * @param mixed $event * @param string $full_result * @param mixed $target * * @return string */ public function maybe_filter_content( $replace, $event, $full_result, $target ) { $content_placeholders = array( '#_NOTES', '#_EVENTNOTES', '#_DESCRIPTION', '#_LOCATIONNOTES', ); if ( ! function_exists( 'et_fb_app_boot' ) || ! in_array( $full_result, $content_placeholders ) ) { return $replace; } return et_fb_app_boot( $replace ); } } new ET_Builder_Plugin_Compat_Events_Manager;
[+]
..
[-] wp-views.php
[edit]
[-] wp-smushit.php
[edit]
[-] advanced-custom-fields.php
[edit]
[-] cdn-enabler.php
[edit]
[-] caldera-forms.php
[edit]
[-] easy-digital-downloads.php
[edit]
[-] pilotpress.php
[edit]
[-] insert-pages.php
[edit]
[-] landing-pages.php
[edit]
[-] mappress-google-maps-for-wordpress.php
[edit]
[-] siteorigin-panels.php
[edit]
[-] paid-memberships-pro.php
[edit]
[-] amazon-s3-and-cloudfront.php
[edit]
[-] wordpress-seo.php
[edit]
[-] photo-gallery.php
[edit]
[-] amazon-s3-and-cloudfront-pro.php
[edit]
[-] dk-pdf.php
[edit]
[-] the-events-calendar.php
[edit]
[-] eventon.php
[edit]
[-] gravityforms.php
[edit]
[-] advanced-custom-fields-pro.php
[edit]
[-] autoptimize.php
[edit]
[-] toolbar-publish-button.php
[edit]
[-] divi-module-code-snippet.php
[edit]
[-] woocommerce.php
[edit]
[-] divi_layout_injector.php
[edit]
[-] events-manager.php
[edit]
[-] sitepress-multilingual-cms.php
[edit]
[-] wordpress-mu-domain-mapping.php
[edit]
[-] coursepress.php
[edit]
[-] table-of-contents-plus.php
[edit]