Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
home
/
emranchoice
/
roomellotravel.com
/
wp-content
/
plugins
/
facetwp
/
includes
/
integrations
/
edd
[ HOME ]
Exec
Submit
edd.php
<?php class FacetWP_Integration_EDD { function __construct() { add_filter( 'facetwp_facet_sources', [ $this, 'exclude_data_sources' ] ); add_filter( 'edd_downloads_query', [ $this, 'edd_downloads_query' ] ); add_action( 'facetwp_assets', [ $this, 'assets' ] ); } /** * Trigger some EDD code on facetwp-loaded * @since 2.0.4 */ function assets( $assets ) { $assets['edd.js'] = FACETWP_URL . '/includes/integrations/edd/edd.js'; return $assets; } /** * Help FacetWP auto-detect the [downloads] shortcode * @since 2.0.4 */ function edd_downloads_query( $query ) { $query['facetwp'] = true; return $query; } /** * Exclude specific EDD custom fields * @since 2.4 */ function exclude_data_sources( $sources ) { foreach ( $sources['custom_fields']['choices'] as $key => $val ) { if ( 0 === strpos( $val, '_edd_' ) ) { unset( $sources['custom_fields']['choices'][ $key ] ); } } return $sources; } } if ( is_plugin_active( 'easy-digital-downloads/easy-digital-downloads.php' ) ) { new FacetWP_Integration_EDD(); }
Submit
Back
Folder Name
Submit
File Name
File Content
Submit
Name
Type
Size
Permission
Last Modified
Actions
.
dir
-
0755
2025-05-18 12:58:04
..
dir
-
0755
2025-05-18 12:58:04
edd.js
text/plain
182 B
0644
2025-05-18 12:55:26
edd.php
text/x-php
1.2 KB
0644
2025-05-18 12:55:26