Problem with update setting
-
My WordPress is showing “Warning: Undefined property: stdClass::$slug in?/home/trendwhi/public_html/wp-content/plugins/tenweb-speed-optimizer/OptimizerAdmin.php?on line?118” error message and the admin PHP code is like this-
public function two_add_two_plugin_to_autoupdate($update, $item) { $plugins = [ 'tenweb-speed-optimizer' ]; if (in_array($item->slug, $plugins)) { // update plugin return true; } // use default settings return $update; }
How to solve this?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with update setting’ is closed to new replies.