You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -101,7 +102,6 @@ function add_meta_box_form_select() {
101
102
}
102
103
}
103
104
104
-
105
105
/**
106
106
* Form selection meta box in post types
107
107
*
@@ -127,7 +127,7 @@ function form_selection_metabox() {
127
127
<?php } ?>
128
128
</select>
129
129
<div>
130
-
<p><a href="https://wedevs.com/docs/wp-user-frontend-pro/tutorials/purpose-of-the-wpuf-form-metabox/" target="_blank"><?php_e( 'Purpose of this metabox', 'wp-user-frontend' ); ?></a></p>
$msg = sprintf( __( 'Frontend edit access for this post will be automatically locked after %s, <a id="wpuf_clear_schedule_lock" data="%s" href="#">Clear Schedule Lock</a> Or,', 'wp-user-frontend' ), $local_time, $post->ID );
return'<div class="wpuf-info">' . apply_filters( 'wpuf_edit_post_lock_user_notice', __( 'Your edit access for this post has been locked by an administrator.', 'wp-user-frontend' ) ) . '</div>';
return'<div class="wpuf-info">' . apply_filters( 'wpuf_edit_post_lock_expire_notice', __( 'Your allocated time for editing this post has been expired.', 'wp-user-frontend' ) ) . '</div>';
191
+
}
192
+
193
+
if ( wpuf_get_user()->edit_post_locked() ) {
194
+
if ( !empty( wpuf_get_user()->edit_post_lock_reason() ) ) {
return'<div class="wpuf-info">' . apply_filters( 'wpuf_user_edit_post_lock_notice', __( 'Your post edit access has been locked by an administrator.', 'wp-user-frontend' ) ) . '</div>';
0 commit comments