Example #1
0
/**
 * Returns The SEO FrameWork version number.
 * Useful for version comparing.
 *
 * @since 2.2.5
 *
 * @return string|null The SEO Framework three point version number. (e.g. '2.2.5')
 */
function the_seo_framework_version()
{
    if (the_seo_framework_active()) {
        return THE_SEO_FRAMEWORK_VERSION;
    }
    return null;
}
Example #2
0
/**
 * Load The_SEO_Framework_Load class
 *
 * @action plugins_loaded
 * @priority 5 Use anything above 5, or any action later than plugins_loaded and
 * you can access the class and functions.
 *
 * @since 2.2.5
 * @staticvar object $tsf
 *
 * @return object|null The SEO Framework Facade class object. Null on failure.
 */
function the_seo_framework_init()
{
    //* Cache the class. Do not run everything more than once.
    static $tsf = null;
    if (the_seo_framework_active()) {
        if (null === $tsf) {
            //* Register autoloader.
            spl_autoload_register('_autoload_the_seo_framework_classes');
            /**
             * @package The_SEO_Framework
             */
            $tsf = new Load();
        }
    }
    return $tsf;
}