PATH:
home
/
bkunreyz
/
icnavancouver.ca
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
plugin-compat
<?php // phpcs:ignore WordPress.Files.FileName -- We don't follow WP filename format. /** * ET_Builder_Plugin_Compat_Relevanssi class file. * * @class ET_Builder_Plugin_Compat_Relevanssi * @package Builder */ if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } /** * Compatibility for the Relevanssi plugin. * * @since 4.7.0 * * @link https://wordpress.org/plugins/relevanssi/ */ class ET_Builder_Plugin_Compat_Relevanssi extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 4.7.0 */ public function __construct() { $this->plugin_id = $this->_get_plugin_id(); $this->init_hooks(); } /** * Get the currently activated plugin id as the FREE and PRO versions are separate plugins. * * @since 4.9.4 * * @return string */ protected function _get_plugin_id() { if ( ! function_exists( 'is_plugin_active' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $pro = 'relevanssi-premium/relevanssi.php'; $free = 'relevanssi/relevanssi.php'; return is_plugin_active( $pro ) ? $pro : $free; } /** * Hook methods to WordPress. * * @since 4.7.0 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_filter( 'et_builder_blog_query', array( $this, 'maybe_modify_blog_query' ) ); } /** * Maybe modify blog query to intercept the posts result. * * @since 4.7.0 * * @param WP_Query $query Main blog query. * * @return WP_Query Modified blog query. */ public function maybe_modify_blog_query( $query ) { // Modify blog query when the current page is search result page. if ( is_search() && function_exists( 'relevanssi_do_query' ) && $query->query_vars['s'] ) { relevanssi_do_query( $query ); } return $query; } } new ET_Builder_Plugin_Compat_Relevanssi();
[-] wpml-sticky-links.php
[edit]
[-] caldera-forms.php
[edit]
[-] events-manager.php
[edit]
[-] amazon-s3-and-cloudfront-pro.php
[edit]
[-] dk-pdf.php
[edit]
[-] wp3d-models.php
[edit]
[-] woocommerce.php
[edit]
[-] table-of-contents-plus.php
[edit]
[-] divi-testimonial-slider.php
[edit]
[+]
styles
[-] ds-divi-rocket.php
[edit]
[-] wp-job-manager.php
[edit]
[-] eventon.php
[edit]
[-] divi_layout_injector.php
[edit]
[-] yith-woocommerce-dynamic-pricing-and-discounts-premium.php
[edit]
[-] coursepress.php
[edit]
[-] jucra-acf-google-maps-for-divi.php
[edit]
[-] mappress-google-maps-for-wordpress.php
[edit]
[-] modern-events-calendar-lite.php
[edit]
[-] woo-paypalplus.php
[edit]
[-] relevanssi.php
[edit]
[-] popup-maker.php
[edit]
[-] amazon-s3-and-cloudfront.php
[edit]
[-] autoptimize.php
[edit]
[-] imagify.php
[edit]
[-] photo-gallery.php
[edit]
[-] insert-pages.php
[edit]
[-] sfwd-lms.php
[edit]
[-] wp-smush-pro.php
[edit]
[-] easy-digital-downloads.php
[edit]
[-] wp-responsive-table.php
[edit]
[-] pilotpress.php
[edit]
[-] advanced-custom-fields.php
[edit]
[-] wp-rocket.php
[edit]
[+]
..
[-] seo-by-rank-math.php
[edit]
[-] paid-memberships-pro.php
[edit]
[-] cartflows.php
[edit]
[-] nex-forms-express-wp-form-builder.php
[edit]
[-] final-tiles-grid-gallery-lite.php
[edit]
[-] kvcore-idx.php
[edit]
[-] wp-views.php
[edit]
[-] sg-cachepress.php
[edit]
[+]
scripts
[-] .htaccess
[edit]
[-] wordpress-mu-domain-mapping.php
[edit]
[-] divi_woo_layout_injector.php
[edit]
[-] the-events-calendar.php
[edit]
[-] megamenu.php
[edit]
[-] gravityformssignature.php
[edit]
[-] relevanssi-premium.php
[edit]
[-] divi-module-code-snippet.php
[edit]
[-] ht-knowledge-base.php
[edit]
[-] wordpress-seo.php
[edit]
[-] the-events-calendar-community-events.php
[edit]
[-] siteorigin-panels.php
[edit]
[-] m-chart.php
[edit]
[-] divi-filterable-blog-module.php
[edit]
[-] gravityforms.php
[edit]
[-] sitepress-multilingual-cms.php
[edit]
[-] advanced-custom-fields-pro.php
[edit]
[-] wp-smushit.php
[edit]
[-] sellsy.php
[edit]
[-] landing-pages.php
[edit]
[-] toolbar-publish-button.php
[edit]
[-] cdn-enabler.php
[edit]