override_post_lock хук-фильтр . WP 3.6.0
Filters whether to allow the post lock to be overridden.
Returning false from the filter will disable the ability to override the post lock.
Использование
add_filter( 'override_post_lock', 'filter_function_name_9712', 10, 3 ); function filter_function_name_9712( $override, $post, $user ){ // filter... return $override; }
- $override(true/false)
- Whether to allow the post lock to be overridden.
По умолчанию: true - $post(WP_Post)
- Post object.
- $user(WP_User)
- The user with the lock for the post.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
wp-admin/includes/post.php 1734
$override = apply_filters( 'override_post_lock', true, $post, $user );