Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mehrshaddarzi/wp_unique_post_id/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
How to Use?
Add Your Custom Post Type Slug to:
private static $targeted_post_types = ['product', 'portfolio', 'event'];
Get Post By DB ID?
WP_Unique_POST_ID::get_post_by_db_id($db_id, $post_type)