mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed REST API endpoint List Pages
This commit is contained in:
@@ -1374,6 +1374,11 @@ function um_pre_profile_shortcode( $args ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// disable for the REST API requests.
|
||||
if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( true === UM()->fields()->editing ) {
|
||||
if ( um_get_requested_user() ) {
|
||||
if ( ! UM()->roles()->um_current_user_can( 'edit', um_get_requested_user() ) ) {
|
||||
|
||||
Reference in New Issue
Block a user