Skip to content

Method

Handle some deprecated methods that other plugins use.

__callStatic( $name, $args )

public static

Parameters

$name
$args

Source

public static function __callStatic( $name, $args ) {
    switch ( $name ) {
        case 'get_object':
            return self::get_instance();

        case 'is_tml_page':
            return tml_is_action( isset( $args[0] ) ? $args[0] : '' );
    }
}

Uses

Changelog

VersionDescription
7.0.1 Introduced.