You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello after updating PHP 8.1 we are fetching issues like not showing more custom taxonomy or CPTs because of the Singleton pattern no more working with PHP 8.1 so below is the solution for the same.
public static function instance() {
static $instance=[];
if (!isset($instance[static::class])) {
$instance[static::class] = new static();
}
return $instance[static::class];
}
The text was updated successfully, but these errors were encountered:
Hello after updating PHP 8.1 we are fetching issues like not showing more custom taxonomy or CPTs because of the Singleton pattern no more working with PHP 8.1 so below is the solution for the same.
wordpress-theme-framework/framework/Objects/Singleton.php
Line 15 in 34d1ac1
Replace this with below
public static function instance() {
static $instance=[];
if (!isset($instance[static::class])) {
$instance[static::class] = new static();
}
return $instance[static::class];
}
The text was updated successfully, but these errors were encountered: