• I’m seeing the following notice being thrown during different actions in the admin seemingly unrelated to your plugin.

    Notice: Undefined variable: post_id in?/var/www/html/wp-content/plugins/wp-notification-bell/admin/admin.php?on line?426

    This last time this was thrown I was in the admin syncing fields with the Advanced Custom Fields plugin although have seen it while doing other core functions.

    The logic is being called within the save_post action and it’s returning the $poist_id which doesn’t exist. In this case, the save_post action doesn’t use a return value so I suspect these return $post_id; lines within this function just need to be updated to return void….return; to solve the issue.

    • This topic was modified 2 years, 4 months ago by Fetch Designs. Reason: Added possible solution
  • The topic ‘Notice: Undefined variable: post_id’ is closed to new replies.