remove_filter('the_content', array(UM()->access(), 'filter_restricted_post_content'), 999999, 1);
add_filter('the_content', function($content) {
if (current_user_can('administrator')) {
return $content;
}
$id = get_the_ID();
if (!$id || is_admin()){
return $content;
}
$ignore = apply_filters('um_ignore_restricted_content', false, $id);
if ($ignore) {
return $content;
}
if (UM()->access()->is_restricted($id)) {
$restriction = UM()->access()->get_post_privacy_settings($id);
if (!isset( $restriction['_um_restrict_by_custom_message'] ) || '0' == $restriction['_um_restrict_by_custom_message']) {
$content = stripslashes( UM()->options()->get('restricted_access_message'));
} elseif ('1' == $restriction['_um_restrict_by_custom_message']) {
$content = ! empty($restriction['_um_restrict_custom_message']) ? stripslashes($restriction['_um_restrict_custom_message']) : '';
}
return apply_shortcodes($content);
}
return $content;
}, 999999, 1);
]]>In this plugin I wish to know how to avoid users registering using the disposable email id / temporary email id
Thanks in advance
]]>I am just wondering if any other Ultimate Member users have reported that their webhost is flagging them for excessive resource usage? The webhost (https://hostpapa.ca) for the site above keeps flagging our WordPress site and the only different plugin I have on this website that I don’t have on others I’ve built is Ultimate Member. I just wanted to see if there may be a connection given I’m at my wits end to figure out what could be causing this (other than the webhost trying to get us to upgrade our plan…) We have what should be a robust hosting plan, so an upgrade really shouldn’t be necessary… Thanks in advance
]]>I tried updating to latest version and rolling back to older version , still im getting same error.
I even tried uploading backup file still the issue persists.
PLEASE HELP ME WITH THIS ISSUE ASAP. I HAVE PUT MY SITE UNDER MAINTENANCE.
Fatal error: Uncaught ValueError: Array sizes are inconsistent in /home4/savitouc/public_html/wp-content/plugins/ultimate-member/includes/core/class-fields.php:3302 Stack trace: #0 /home4/savitouc/public_html/wp-content/plugins/ultimate-member/includes/core/class-fields.php(3302): array_multisort(Array, 4, Array) #1 /home4/savitouc/public_html/wp-content/plugins/ultimate-member/includes/core/class-builtin.php(1293): um\core\Fields->array_sort_by_column(Array, ‘title’) #2 /home4/savitouc/public_html/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-gdpr.php(87): um\core\Builtin->all_user_fields(NULL, true) #3 /home4/savitouc/public_html/wp-includes/class-wp-hook.php(307): um\admin\core\Admin_GDPR->init_fields(”) #4 /home4/savitouc/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #5 /home4/savitouc/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #6 /home4/savitouc/public_html/wp-settings.php(598): do_action(‘init’) #7 /home4/savitouc/public_html/wp-config.php(100): require_once(‘/home4/savitouc…’) #8 /home4/savitouc/public_html/wp-load.php(50): require_once(‘/home4/savitouc…’) #9 /home4/savitouc/public_html/wp-admin/admin.php(34): require_once(‘/home4/savitouc…’) #10 /home4/savitouc/public_html/wp-admin/index.php(10): require_once(‘/home4/savitouc…’) #11 {main} thrown in /home4/savitouc/public_html/wp-content/plugins/ultimate-member/includes/core/class-fields.php on line 3302
]]>