Description

This function checks if an user has bookmarked a publication.

Usage

<?php tp_check_bookmark(); ?>

Parameters

pub_id

(int) The id of the course.

user_id

(int) The user_id

Return

(boolean)

Returns TRUE if the user has bookmarked the publication, FALSE if not.

Example

if ( tp_check_bookmark($value, $current_user->ID) ) {
   // do something      
}

 

Changelog

  • Since: 4.0.0