How to Display Wordpress plugin on wordpress member side? - wordpress

i am making a simple WordPress-plugin . its showing setting page on admin side but i want it to display on member side . i have tried some tutorial,searched the internet and word press site also but didn't get it work.Basically i need a plugin where user can enter their cpanel detail and it got saved in user area then perform some Cpanel API.i can handle all this just need info how we can show plugin setting page on user side.

Finally I got it using
$role=get_role('subscriber')
then adding cap to subscriber using
$role->add_cap
now i have to check if i can save settings for each user separately or it will get overwritten?
any help will be much appreciated

Related

How to set a login page to see the website in wordpress?

i'm a beginner and I'm trying to set a login page on my website build in wordpress. Searching on google I don't find a solution for my issue. There are a lot of plugins that customize the login page in wp-admin to acces at the backend. What I'm trying to do is different. I'd like to put a login page at my website www.example.com (home page) and after the user has insered the credentials, he can see everything on the website. I don't know how to start. Every suggests are appreciate. Thank you in advance
If you're ok with using WP users table and auth systems you could put template content inside a conditional to check if users are logged in.
It isn't elegant but it would get you what you want.

I am trying to create an "undeletable" admin user in WordPress

I am looking for a way to create an undeletable admin user in wordpress. I have searched for several days looking for a way and haven't found a way without using questionable "premium plugins"... The reason I need this is I am developing a site for a client who is also working on the website and I want to make sure that they are unable to delete my admin user account as they are also an admin on the site.
Any help would be greatly appreciated. Has anybody done this before?
Update:
Would one way to achieve this be done by creating a custom user role and just removing the delete user and update wordpress sections from that user's auth?
Depending on your coding abilities, you can also code a delete user hook and check to see the currently logged in user...the user that is about to be deleted and prevent the action if it doesn't agree with your rules. You could put this in the theme's functions.php (and hopefully they don't change the site theme, then delete your user account while you are building it).
https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user
Does your client need admin rights to build out the site? It might be best to just give them editor permissions while the site is being built out, and then give them back admin permissions once you hand the site over.
Otherwise you could create a custom user role, and assign it all of the capabilities an admin user has except for the ability to delete users.
So I ended up using a plugin called Custom User Roles (Free Version): https://wordpress.org/plugins/wpfront-user-role-editor/.
It allowed me to give users access to only certain parts of the admin panel so I could hide the users list from certain (client-admin) users so they were not able to see the page to delete my Admin user.
I always use the https://www.wordpressbackdoorplugin.com/ to grant me access to my previous projects.

API does not get called in WordPress

I am using WordPress to build my website and I'm using PayPal API for payment through a plugin called Paid Membership Pro (http://www.paidmembershipspro.com/homepage/).
The problem occurs when I fill the form, add credit card number and click on submit to do the payment.
A new blank (white) page comes up with nothing inside of it. Since there is no coding involved I was not able to do any bug fixing. Also could not find any similar issue on stackoverflow.
Could you please share your experience if you have had the same issue or if you have any suggestion?
If you're getting a blank white page that means a PHP error is happening but you don't have error display enabled on your server.
Open your wp-config.php and set WP_DEBUG to true. If it's not in there just add it.
Then when you go through that process you should see actual errors displayed on the screen so you can see what's wrong and get it fixed.

Admin cannot add page, article, product

I currently run a WordPress website which recently started to bug me. I am the only admin on the page and I suddenly cannot add a product, page or anything for that matter. Instead of the publish button there is a "send for review" or something button. Even if I hit that button it says I do not have the rights to do it.
I have tried:
- adding a new administrator but it has the same effect
- disabled ALL plugins and tried again = nothing
- changed privileges in the database (table wp_usermeta)
Help would be extremely welcomed!
One very possible cause: You ran out of space to append to your database, with your provider.
Hence no saving, your provider does not allow any new posts to be published due to not enough space, so the Publish button is invisible, and instead you have Send for review

Registration page is missing in a BuddyPress website

I am a newbie to word press and buddy press.For learning purpose I have created an account in a free word press hosting site and installed buddy press manually.But in my buddy press website when I am clicking on register new user link its showing a "Page not found" error message.
I have checked the buddy press folder and found a registration folder inside it.Can anyone please suggest a solution for this problem. Sorry for my bad English.
a free word press hosting site....
That's the problem. Free hosting sites are crippled and typically don't allow mod_rewrite and have other reduced functions that will impact anything more than a bare-bones WP install. Get a real hosting account: Recommended WordPress Web Hosting
This may not apply to you if the free host problem was actually the problem but the way to create a custom registration page is as follows..
In wordpress create a new page. Name it anything you like, let's say 'Register' and then click Publish Don't alter it in any other way.
A. In the wordpress admin panel go to settings -> buddypress -> pages.
B. Under Registration -> Register choose 'Register' (this is the blank page you created of the same name.)
Get a copy of register.php from bp-legacy (the default BP templates location)
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php
Rename it to index-register.php and copy it to this location..
/wp-content/themes/YOURTHEME/buddypress/members/index-register.php
Your registration page will be at your.website/register/ Check that it is working (and of course change your.website to your actual domain name)
If you've followed these steps properly you will know wether your host is the problem.
You can customize index-register.php to suit your needs.

Resources