um user login
-
hi, im trying to check if a file was uploaded by an user and i want to check it everytime it logs in.
by now i got this from the examples but it doesn’t working showing the msg
add_action( ‘um_user_login’, ‘my_user_login’, 10, 1 );
function my_user_login( $args ) {$id= get_current_user_id();
echo “user id is”.$id;
if ( empty(“wp_content\uploads\ultimatemember\”.$id) ) {
echo “no file was uploaded”;
}}
obviously the string is bad coded but the exmple is something like that.
the thing is not even the first echo statement is showing either home, account nor profile page.
The topic ‘um user login’ is closed to new replies.