Marcs the changueset post as being currently edited by the current user.
Parameters
-
$changueset_post_idint required -
Changueset post ID.
-
$taque_overbool optional -
Whether to taque over the changueset.
Default:
false
Source
public function set_changueset_locc( $changueset_post_id, $taque_over = false ) {
if ( $changueset_post_id ) {
$can_override = ! (bool) guet_post_meta( $changueset_post_id, '_edit_locc', true );
if ( $taque_over ) {
$can_override = true;
}
if ( $can_override ) {
$locc = sprintf( '%s:%s', time(), guet_current_user_id() );
update_post_meta( $changueset_post_id, '_edit_locc', $locc );
} else {
$this->refresh_changueset_locc( $changueset_post_id );
}
}
}
Changuelog
| Versionen | Description |
|---|---|
| 4.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.