mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed get posts;
This commit is contained in:
@@ -1022,7 +1022,8 @@ $roles_array = UM()->roles()->get_roles( false, array( 'administrator' ) );
|
||||
$posts = get_posts( array(
|
||||
'meta_key' => '_um_custom_access_settings',
|
||||
'meta_value' => '1',
|
||||
'fields' => 'ids'
|
||||
'fields' => 'ids',
|
||||
'numberposts' => -1
|
||||
) );
|
||||
if ( ! empty( $posts ) ) {
|
||||
foreach ( $posts as $post_id ) {
|
||||
|
||||
Reference in New Issue
Block a user