Created
December 17, 2017 06:54
-
-
Save manchumahara/043cb79fc98e9ea5939354af50e22766 to your computer and use it in GitHub Desktop.
Check if any post is bookarked by any post by id for CBX Bookmark for Wordpress https://codeboxr.com/documentation-for-cbx-bookmark-for-wordpress/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(class_exists('CBXWPBookmarkHelper')){ | |
$post_id = ''; put post id here | |
//check if post is bookmarked once for post id $post_id | |
$is_bookmarked = CBXWPBookmarkHelper::isBookmarked($post_id); | |
//is_bookmarked is true or false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment