Linked Questions

1
vote
1answer
67 views

How to include a file for admin and 2 pages without being loaded on other parts of the site?

I need to include a file twice. once in admin, another in its component. if( is_admin() || is_the_component() ) require... But, there's a big function in the class for registering stuffs is only ...
0
votes
1answer
77 views

admin_notices after register_uninstall / deactivate_hook

I've successfully added admin notices to display on register_activation_hook, and when the plugin updates, but I'm not seeing any way to display admin_notices after the uninstall or deactivation ...
3
votes
1answer
75 views

How can I import a class privately into a plugin?

I've written a Wordpress plugin that makes use of a simple controller/templating library I have authored, to separate out business logic from presentation. I have a (slightly theoretical) query about ...
0
votes
1answer
64 views

URL rewrite in theme doesn't seem to be working

so I was asked to create url rewrites for one of the websites we're working on, but the thing is the test rewrite I did, just to try it out, is not really working. here's the code I put in the ...
0
votes
0answers
62 views

Show a confirmation message on plugin deactivation

When my plugin is deactivated, I want to get a confirmation from the user whether all plugin options/tables need to be deleted or left as it is. Based on the option selected, I want to proceed ...
1
vote
0answers
30 views

Custom message on plugin uninstall

I'm writing a small wordpress plugin that creates some custom files, but I'm wondering if there is a way to show a quick "reminder" pop-up or message when a user deactivates the plugin. I just want ...
-1
votes
1answer
15 views

Best practice to create required pages

Some times, when we work on custom wordpress themes, we need required pages. For example - custom login page. Some times, when user change slug, page template or something else - it a very difficult ...
0
votes
0answers
4 views

Updating existing table in wordpress plugin [duplicate]

How can I update the table structure of the wordpress plugin on reactivation of the plugin. what is the code for change the structure of the existing table in my plugin. ?

15 30 50 per page