Can I provide a user’s user_ID to them and can it also be searchable in a member’s directory

This will give the user id of the currently logged in user: $current_user_id = get_current_user_id(); User IDs are assigned sequentially (normally) when a user is created in WP admin (or by a process that creates the user ID programmatically). But be aware that the user ID can be abused. For instance, one could query your … Read more

Undefined Function Fatal Error with Shortcode [closed]

Well, the AI didn’t do THAT bad of a job. But either you or the AI didn’t deliver code for the functions get_users_who_commented or get_number_of_comments_by_user which are not wordpress functions but have to be coded seperatly. Also, i would change the code a bit to use wordpress-internal functions like the comment query: function my_custom_shortcode( $atts … Read more