PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
plugin-compat
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Plugin compatibility for Amazon S3 Offload * * @since 3.0.49 * * @link https://wordpress.org/plugins/amazon-s3-and-cloudfront/ */ class ET_Builder_Plugin_Compat_WP_Offload_S3 extends ET_Builder_Plugin_Compat_Base { /** * Constructor */ function __construct() { $this->plugin_id = 'amazon-s3-and-cloudfront/wordpress-s3.php'; $this->init_hooks(); } /** * Hook methods to WordPress * * Latest plugin version: 1.1.6 * * @return void */ function init_hooks() { // Bail if there's no version found if ( ! $this->get_plugin_version() ) { return; } // Up to: latest theme version add_action( 'et_fb_ajax_save_verification_result', array( $this, 'override_fb_ajax_save_verification' ) ); // Filter attachment IDs for images with an external/CDN URL. add_filter( 'et_get_attachment_id_by_url_pre', array( $this, 'et_get_attachment_id_by_url_pre' ), 10, 2 ); } /** * @param bool $verification * * @return bool */ function override_fb_ajax_save_verification( $verification ) { return true; } /** * Filter attachment ID in case it has an external/CDN URL. * * @since 4.2.1 * * @param bool|int $attachment_id_pre Default value. Default is false. * @param string $url URL of the image need to query. * * @return bool|int */ public function et_get_attachment_id_by_url_pre( $attachment_id_pre, $url ) { global $as3cf; $as3cf_s3_to_local = new AS3CF_S3_To_Local( $as3cf ); $attachment_id = $as3cf_s3_to_local->get_attachment_id_from_url( $url ); if ( $attachment_id ) { return $attachment_id; } return $attachment_id_pre; } } new ET_Builder_Plugin_Compat_WP_Offload_S3();
[+]
..
[-] .htaccess
[edit]
[-] amazon-s3-and-cloudfront.php
[edit]
[-] dk-pdf.php
[edit]
[-] pilotpress.php
[edit]
[-] gravityforms.php
[edit]
[-] wp-smushit.php
[edit]
[-] toolbar-publish-button.php
[edit]
[-] wp-responsive-table.php
[edit]
[-] events-manager.php
[edit]
[-] imagify.php
[edit]
[-] wp-job-manager.php
[edit]
[+]
scripts
[-] wp-views.php
[edit]
[-] siteorigin-panels.php
[edit]
[-] divi_layout_injector.php
[edit]
[-] table-of-contents-plus.php
[edit]
[-] amazon-s3-and-cloudfront-pro.php
[edit]
[-] insert-pages.php
[edit]
[-] cartflows.php
[edit]
[-] megamenu.php
[edit]
[-] cdn-enabler.php
[edit]
[-] the-events-calendar.php
[edit]
[-] seo-by-rank-math.php
[edit]
[-] wordpress-mu-domain-mapping.php
[edit]
[-] landing-pages.php
[edit]
[-] coursepress.php
[edit]
[-] easy-digital-downloads.php
[edit]
[-] sfwd-lms.php
[edit]
[-] divi_woo_layout_injector.php
[edit]
[-] wordpress-seo.php
[edit]
[-] the-events-calendar-community-events.php
[edit]
[-] photo-gallery.php
[edit]
[-] sitepress-multilingual-cms.php
[edit]
[-] mappress-google-maps-for-wordpress.php
[edit]
[-] advanced-custom-fields.php
[edit]
[-] wp-smush-pro.php
[edit]
[-] paid-memberships-pro.php
[edit]
[-] divi-testimonial-slider.php
[edit]
[-] wpml-sticky-links.php
[edit]
[-] eventon.php
[edit]
[-] divi-module-code-snippet.php
[edit]
[-] caldera-forms.php
[edit]
[-] autoptimize.php
[edit]
[-] advanced-custom-fields-pro.php
[edit]
[-] woocommerce.php
[edit]