Tagged Questions
0
votes
0answers
11 views
Redirect url in plugin to somewhere else?
I am using WP-SNAP Extended! v1.0.0 and I want to use this alphabetical menu as a sub-menu beneath my header. I managed to get the alphabetical menu in place, but now, if I click on a letter, it will ...
0
votes
0answers
36 views
Redirect with message
For a plugin I'm currently developing, I have a custom form. The user can fill in the form and submit.
The way I want the form submission to work is:
Submit form -> validate data ---> success? ...
0
votes
1answer
49 views
Can Not Redirect from Plugin-Registered Admin Page
I am doing the following in my plugin:
Register a custom admin page and in the callback function (the last parameter of add_submenu_page)
Redirect to another page
However, when I open the custom ...
2
votes
1answer
143 views
How to redirect to action on custom page within admin section
Currently I'm developing(well at least trying to;) plugin which will handle custom gallery of images. I stumbled upon one problem though. I'll try to picture it.
I've created custom menu page on ...
1
vote
0answers
49 views
Add a new confirmation page before saving
I'm going to add a hook that does some modifications of the text before saving. Before making the changes permanent, I would like the user to confirm the changes after a "save_post" hook. Is there a ...
1
vote
1answer
144 views
On cliking add new post redirect user to a custom page first
Probably my question title is confusing.
I want something like this:
I have custom post type
When I click on add new, I would like to go to a "select" page
The select page allows you to make a ...
0
votes
1answer
197 views
Show custom data instead of 404
I'm currently developing a plugin to display some custom data on my wordpress site.
For example I have a data named abc. If a visitor try to access localhost/wordpress/abc, it should display the data ...
0
votes
1answer
589 views
Change template dynamically
Is it possible to change the template loaded for a page, as it loads, without having to change the record in the database?
I suspect it can be done with the template_redirect action, and the will ...
0
votes
2answers
548 views
Custom admin_notices Messages Ignored During Redirects
I have a error handling mechanism setup in one of my plugins to add notices and errors to the admin area, just like the core does. It works fine in most cases, but there are some situations (like ...
2
votes
2answers
1k views
Which hook should be used to add an action containing a redirect?
I want to build a plugin that grabs certain url params from the query string to build a new query string for the same page. I'm following the excellent the Professional WordPress Plugin Development ...
0
votes
2answers
103 views
Is there any way to pass messages from a script to a redirect target in a hidden fashion?
I'm trying to pass error messages or regular messages from a page that processes a form post request to the page it then redirects to (after processing).
Since i want to get rid of the POST request ...
2
votes
2answers
2k views
Making a plugin file accessible via url rewrite?
In my WordPress plugin I have a php file that generates some stats about the blog and outputs it as a simple text file. To access WordPress functions I've included this at the top of the file:
...