patrikhoermann
Forum Replies Created
-
Thanks for the hint – Reload the page with cleared browser-cage did not help in the first place.
I have no Cache-Plugin installed but clearing the user-cache in UM did the trick.To disable the user-cage permanently I inserted:
add_filter("um_get_option_filter__um_profile_object_cache_stop","__return_true");In my functions.php – tested it and now everything works like a charm again!
- This reply was modified 6 years, 3 months ago by patrikhoermann.
With this Code I filter the member List to only show a specific group of users.
Maybe some Users will try it with the inspector and edit the code from the displayed Memberlist to get all the members and not only the filterd group of users.
My question – Is it possible for a normal member to bypass this filter somehow and see the whole member-list?
- This reply was modified 6 years, 3 months ago by patrikhoermann.
I editet your snippet:
add_filter("um_prepare_user_query_args","um_custom_prepare_user_query_args", 10, 2 ); function um_custom_prepare_user_query_args( $query_args, $directory_data ){ $target_directory_id = 8177; if( $target_directory_id == $directory_data['form_id'] ){ global $wpdb; $user_id = get_current_user_id(); $downlines = $wpdb->get_col( " SELECT user_id FROM abwyz_usermeta WHERE meta_key = 'glbl_rwf_attracted_by' AND meta_value = $user_id " ); //$query_args['include'] = $downlines; // includes IDs of your affiliates here. $query_args['include'] = $downlines; // includes IDs of your affiliates here. } return $query_args; }Is it possible for a normal user in the frontend to delete the request and get the full member-list?
Like change something with the Inspector in the scripts?- This reply was modified 6 years, 3 months ago by patrikhoermann.
I have never worked with wordpress hooks before.
I thought about some code in the functions.php that runs only on the specific page-id ( page id from the page where I insert the shortcode for the custom-directory-form) that gets the User-ID and filter the directory before showing it in the frontend.
Is there some documentation I can read to get my custom-directory running?