How does one make a WordPress plugin settings available on the front end?
-
For example: Most WP plugins come with a settings page in /wp-admin/. Is there a way to bring these settings to the front end with a shortcode on a page or code I can use in a page template so I can create http://mysite.com/plugin-settings/ and keep my branding without using the default WP admin backend?
-
Answer:
Yes, it's possible. I wouldn't want to do it without some kind of privacy wall (membership, etc), but it does sounds like you've considered that already. All that's really needed is that you hook into the WordPress http://codex.wordpress.org/Settings_API -- while that usually happens on the admin side (as usually via http://codex.wordpress.org/Function_Reference/add_menu_page), you don't need to use an admin page for it, and you could, instead, hook your options page into a shortcode to display on the front end (or a page template, or whatever). All an admin page does is submit a form that posts to yourdomain/options.php -- as long as the user can submit that form (and, presumably, has rights/capabilities to view it, which they would unless you wrapped it in a check for user roles/capabilities), it doesn't matter where the form is on the site. I should note, however, that if this is actually a plugin settings page, then anyone who has access to that page can change the global settings for that plugin. So, if you had a plugin that allows custom CSS and user A adds some CSS, user B can come along, remove that CSS and add new CSS. If what you're trying to do is give some user preferences, or hook into the user profile on the front end, that's a different thing (and also possible).
Chris Reynolds at Quora Visit the source
Other answers
Why do you want to make your admin dashboard public? Please help me to understand your motive, and I can try to offer you a solution.
Spencer Forman
It seems like your main issue is keeping your branding "without using the default WP admin backend." How about a custom admin theme integrating your brand? http://codex.wordpress.org/Creating_Admin_Themes
Niall Kennedy
Related Q & A:
- How to speed up a wordpress function with multiple loops?Best solution by WordPress
- How does one create a recursive lexer?Best solution by stackoverflow.com
- How does one make fast and easy money on eBay?Best solution by ebay.com
- How does one become a SAP professional?Best solution by Quora
- How does one get a job in accounting?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.