public static function register( $slug, $name ) {
		if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) {
			self::old_register( $slug, $name );
		} else {
			self::$templates[ $slug ] = $name;
			add_filter( 'theme_page_templates', [ __CLASS__, 'register_template' ] );
		}
	}
public static function register( $slug, $name ) {
		if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) {
			self::old_register( $slug, $name );
		} else {
			self::$templates[ $slug ] = $name;
			add_filter( 'theme_page_templates', [ __CLASS__, 'register_template' ] );
		}
	}
public static function register ( $ slug , $ name ) { if ( version_compare ( floatval ( get_bloginfo ( 'version' ) ) , '4.7' , '<' ) ) { self :: old_register ( $ slug , $ name ) ; } else { self :: $ templates [ $ slug ] = $ name ; add_filter ( 'theme_page_templates' , [ __CLASS__ , 'register_template' ] ) ; } }
Register a page template

@param string $slug The slug
@param string $name The name
Register a page template