Mike,
The shortcode is prepared to work in the frontend, as every shortcode.
This is the first time I see someone using a shortcode into dashboard.
Hi Javier, thankyou for your swift response.
The admin dashboard we have created is written directly into our theme functions file, and populates the dashboard in place of the default WordPress dashboard. Most shortcodes we use in here work as if they were in the front end, called with <?php echo do shortcode (”)?>.
This is a minor point, as obviously can do the export within the admin tools menu, but we were hoping to preset the export options and just have an export button here thats easily reachable and simple, as we make virtual event platforms and need to update clients with their registration figures. One button click would really help us, and make it fool proof if we decide to allow the client admin to export in this manner too.
Yes I know how to do it but this is prepared to work in the frontend… I would have to rewrite all to make also work there.
I never thought someone could need it working there.
I will include in the to-do list, but this won’t be soon.
That’s ok, I just wondered if an easy solution etc. Again, thankyou for your speedy response and for considering, and will keep following this post if it gets rolled in :).
I’ve figured a work around for now – iframe of a published page but restricting access to admins. Just a quick question regarding the shortcode, are the parameters stackable, eg:
[export-users role=”role1,role2,role3″ columns=”user_nicename,user_email,first_name,last_name,user_registered,role,business_name,job_title,full_name”]
?
What are you referring to with “are the parameters stackable”?