=' ) ) { return true; } elseif ( 'free' === WPPFM_PLUGIN_VERSION_ID && version_compare( WPPFM_VERSION_NUM, '2.0.0', '>=' ) ) { return true; } else { return false; } } /** * Includes all required files and classes. */ function wppfm_rf_includes() { // Do not load the other scripts unless a wppfm page is on. if ( ! wppfm_on_own_main_plugin_page() ) { return; } require_once __DIR__ . '/wpprfm-review-feed-form-functions.php'; require_once __DIR__ . '/wpprfm-setup-feed-manager.php'; require_once __DIR__ . '/wpprfm-include-classes-functions.php'; require_once __DIR__ . '/wpprfm-feed-generation-functions.php'; // Include the traits. require_once __DIR__ . '/traits/wpprfm-processing-support.php'; require_once __DIR__ . '/traits/wpprfm-xml-element-functions.php'; // Include the required classes. wppfm_rf_include_classes(); } /** * Define the required constants. */ function wppfm_rf_define_constants() { // Store the name of the package. if ( ! defined( 'WPPRFM_PACKAGE_NAME' ) ) { define( 'WPPRFM_PACKAGE_NAME', 'review-feed-manager' ); } // Store the url to the package. if ( ! defined( 'WPPRFM_PACKAGE_URL' ) ) { define( 'WPPRFM_PACKAGE_URL', WPPFM_PLUGIN_URL . '/includes/packages/' . WPPRFM_PACKAGE_NAME ); } if ( ! defined( 'WPPRFM_FEED_VERSION' ) ) { define( 'WPPRFM_FEED_VERSION', '2.2' ); } } /** * Include the background classes. */ function wppfm_rf_include_background_classes() { require_once __DIR__ . '/traits/wpprfm-processing-support.php'; require_once __DIR__ . '/traits/wpprfm-xml-element-functions.php'; if ( ! class_exists( 'WPPFM_RF_Review_Feed_Processor' ) ) { require_once __DIR__ . '/classes/class-wpprfm-review-feed-processor.php'; } if ( ! class_exists( 'WPPFM_RF_Attributes_List' ) ) { require_once __DIR__ . '/classes/class-wpprfm-attributes-list.php'; } } add_action( 'wppfm_includes', 'wppfm_rf_include_background_classes' );