[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/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

  bbp_check_post_lock()
  bbp_set_post_lock()

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.
since: 2.6.0 bbPress (r6340)
param: int $post_id ID of the post to check for editing

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
since: 2.6.0 bbPress (r6340)
param: int $post_id ID of the post to being edited



Generated: Fri Feb 26 01:01:26 2021 Cross-referenced by PHPXref 0.7.1