public static function pdf_init() { /* * Check if Formidable Pro is installed before we continue * Include common functions for test */ if (FPPDF_Common::is_formidable_supported(FP_PDF_EXTENDED_SUPPORTED_VERSION) === false) { add_action('after_plugin_row_' . FP_PDF_EXTENDED_PLUGIN_BASENAME, 'FPPDF_Core::add_compatibility_error'); return; } else { if (FPPDF_Common::is_wordpress_supported(FP_PDF_EXTENDED_WP_SUPPORTED_VERSION) === false) { add_action('after_plugin_row_' . FP_PDF_EXTENDED_PLUGIN_BASENAME, 'FPPDF_Core::add_wp_compatibility_error'); return; } else { add_action('after_plugin_row_' . FP_PDF_EXTENDED_PLUGIN_BASENAME, 'FPPDF_Core::add_documentation_byline'); } } /* * As it's called inside a undefined function we need to globalise the $fppdf namespace */ global $fppdf; $fppdf = new FPPDF_Core(); /* * Some functions require the Wordpress Admin area to be fully loaded before we do any processing */ add_action('wp_loaded', 'FPPDF_Core::fully_loaded_admin'); }