[ Index ]

PHP Cross Reference of BBPress




/src/includes/common/ -> locks.php (summary)

bbPress Locking

File Size: 82 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

bbp_check_post_lock( $post_id = 0 )   X-Ref
Check to see if the post is currently being edited by another user.

return: integer False: not locked or locked by current user. Int: user ID of user with lock.
param: int $post_id ID of the post to check for editing
since: 2.6.0 bbPress (r6340)

bbp_set_post_lock( $post_id = 0 )   X-Ref
Mark the post as currently being edited by the current user

return: bool|array Returns false if the post doesn't exist of there is no current user, or
param: int $post_id ID of the post to being edited
since: 2.6.0 bbPress (r6340)

Generated: Wed Feb 28 01:00:50 2024 Cross-referenced by PHPXref 0.7.1