![]() Server : LiteSpeed System : Linux premium84.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 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/www/wp-content/plugins/default-featured-image/app/ |
<?php /** * This class holds exceptions for plugins that need exceptions for DFI. * * Class DFI_Exceptions */ class DFI_Exceptions { /** * Exclude dfi from shortcode: wpuf_edit * * @param mixed $_false unused, just pass along. * @param string $tag The shortcode. * * @return mixed */ public static function wp_user_frontend_pre( $_false, $tag ) { if ( 'wpuf_edit' === $tag ) { add_filter( 'dfi_thumbnail_id', '__return_null' ); } return $_false; } /** * Exclude dfi from shortcode: wpuf_edit * * @param mixed $output unused, just pass along. * @param string $tag The shortcode. * * @return mixed */ public static function wp_user_frontend_after( $output, $tag ) { if ( 'wpuf_edit' === $tag ) { remove_filter( 'dfi_thumbnail_id', '__return_null' ); } return $output; } /** * Exclude wp all import, the DFI during the import. * * @param int $dfi_id The DFI id. * * @return null|int */ public static function wp_all_import_dfi_workaround( $dfi_id ) { if ( function_exists( 'wp_all_import_get_import_id' ) && is_numeric( wp_all_import_get_import_id() ) ) { return null; // If a post is imported with WP All Import, set DFI id to null. } else { return $dfi_id; } } }