0
votes
0answers
16 views

How to load another page file of my custom plugin file

I'm creating my own plugin for medical purpose. in the site front end using shortcode i created a login form. so after logged in the doctor can see list of patients with and edit link to each row. i ...
0
votes
1answer
42 views

Redirect user to a particular link in 10 seconds after using wp_die

I want to use some type of functionality if ( $some_condition == false ) { wp_die(); // Here i want to redirect page on some URL after 10 seconds } I need to do it inside a plugin. Is it ...
1
vote
6answers
170 views

Pages 404 in wordpress

First of all, I am very new to wordpress and know almost nothing about it. When I create the page foo using in wp-admin, I get the message that the page is created. When I click on view page, it ...
0
votes
1answer
50 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
1answer
315 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
510 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
62 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
188 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
292 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
2k 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 ...
2
votes
2answers
949 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 ...
4
votes
3answers
3k 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
115 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 ...
3
votes
2answers
3k 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: ...