[ 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.

since: 2.6.0 bbPress (r6340)
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

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

since: 2.6.0 bbPress (r6340)
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



Generated: Sat Dec 21 01:00:52 2024 Cross-referenced by PHPXref 0.7.1