deactivate() public static method

Deactivate Papi if the WordPress version is lower then 4.0.
public static deactivate ( )
Example #1
0
/**
 * Return the instance of Papi to everyone.
 *
 * @return Papi_Loader
 */
function papi()
{
    if (version_compare(get_bloginfo('version'), '4.0', '<')) {
        Papi_Loader::deactivate();
    }
    return Papi_Loader::instance();
}