Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    If you add this to your theme’s functions.php file, or a plugin, you can restrict access on the submission data page to only submissions by that user:

    add_filter( 'fm_data_query_clauses', 'fm_show_user_data_only' );
    function fm_show_user_data_only( $clauses ){
    	global $current_user;
    	get_currentuserinfo();
    	if ( $current_user-> user_login != 'admin' ){
    		$clauses[] = "user = '{$current_user->user_login}'";
    	}
    	return $clauses;
    }
    Thread Starter Barr-find

    (@barr-find)

    I was waiting so long that I forgot about this. I have made my own function to delete submissions from database but this solution looks much simpler than than my. I will try to rebuild my function to use this code. TY for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WordPress Form Manager] Edit or delete submmisions by members.’ is closed to new replies.