Regarding dashboard display

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 1 month ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
February 14, 2014 at 3:20 am 15437
Tareq Hasan I would like users who are admins to be able to view all submissions in once screen. Right now they can view the submissions for our two forms separately but only if they are the people who submitted. I want admins to see submissions for both forms from ALL users, not just their own. Is this possible?
February 14, 2014 at 11:50 am 15444
Tareq Hasan Tareq Hasan

Yeah, that’s possible.

Just paste this snippet to your themes functions.php
[php]
function wpufe_dashboard_show_all_to_admin( $args ) {
if ( current_user_can( ‘manage_options’ ) ) {
unset( $args[‘author’] );
}

return $args;
}

add_filter( ‘wpuf_dashboard_query’, ‘wpufe_dashboard_show_all_to_admin’ );
[/php]

Viewing 1 Posts - 1 through 1 (of 1 total)