I am trying to remove a metabox ID from a page ID in the admin screen. So I have coded the following:
It is working fine but an error is showing in the widget.php page. Error code is:
Notice: Trying to get property of non-object in E:\xampp\htdocs\speechcare\wp-content\themes\cutedoctor\core\helpers.php on line 56
Can anyone please explain why this error is showing and what I am doing wrong? Thanks in advance.