namespace WP\Error and WP\Post, add get_post action to WP\Post