You should be able to use template_redirect. I haven’t tested it though, should be something like this.
function page_redirect() {
if ($_SERVER['REQUEST_URI'] == 'your_url') {
require(TEMPLATEPATH . '/mY-account.php');
}
}
add_action('template_redirect', 'page_redirect');
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Which functions in theme or plugin load first
- Updating post meta for custom post types
- How to Build a Movie Library in WordPress 3.x
- How to use get_theme_mod in gutenberg editor wordpress?
- Custom Post Type, Custom Columns List
- Check if theme supports sidebar
- Ultimate Members Default Post Layout problem
- Rename a folder via HTML POST request
- Cannot view Custom Post Type no matter what I try
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- How to generate a responsive output from plugin?
- How to add image for custom taxonomy
- How to make content as required in custom post type?
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Is it a good idea to edit an already existing plugin to add more functionality?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Function to activate WordPress theme inside a plugin
- How can I limit functionality in one version of a plugin?
- Add CSS animation as Preloader to WordPress
- WordPress network: set themes and plugins for new blog
- Remove POST_TYPE from custom post type permalink
- remove custom taxonomy metabox form custom post type
- Custom Post Type Statuses
- Autoload via composer in plugin interference
- REST-API: extend media-endpoint
- Workflow and best practice for documentation [closed]
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- Is there a way to alter the order in which the plugins appear in the page?
- How does WP handle multiple matching rewrite rules?
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- My plugin wants to update another plugin
- How to get current post user id
- Input with spaces in Shortcode attributes overwritten by defaults
- Is it possible to create Custom Post plug-in?
- Edit Yoast SEO breadcrumbs output [closed]
- Display post lists in 2nd paragraph
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- How to redirect users to their profile after they successfully edit their profile
- Unable to delete custom post types, confusion around capabilities
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- How to write “alt” tag in image for wordpress code?
- Customizing Titles on the Fly with Code
- Shortcode Attributes to Return different $_POST
- How to use the CSS of the WordPress core in the development of my administration page?
- Loop in elementor custom widget not working
- Custom post type’s posts are not showing anywere but in xml sitemap
- display unique post per category
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- unregister a sidebar widget
- woocommerce remove coupon link does not work
- How to override any plugin file in the child theme
- Adding category base to url in custom post giving 404?
- submit two file input fields in the same form
- How to display the custom post related blog by category?
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- Problem with checked box on wp car manager plugin
- My wordpress local urls is still displayed even moved to live
- $wpdb->insert not working inside save_post tag
- working code, not working – Plugin Dev
- Create survey that redirects to sidebar menu customized to answers
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- Load my Inline js footer area
- Remove action added in plugin class from theme
- Woocommerce list variations that are added already to cart in Single Product
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Creating Nested custom fields
- how to add custom css at top above all css file for specific url
- Confusing problem with displaying message recipient metadata
- Custom pages with plugin
- How to add jquery to my custom post type wp plugin
- Multiselect value in wp_query
- Add Excerpt On Quicksand Plugin
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Get page type to display content
- get_option include in my adsense
- Site is setup statically – how to make it content managable?
- Is an Office a custom post type [closed]
- How can I make a website with dynamic features with wordpress?
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- WordPress Code Access to Restricted Content without Registration
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Integrating WordPress Content into a jQuery Slider
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- How can I properly sanitize the update_option in WordPress?
- how to make wordpress remember my choice
- How to Enfroce Domain Licensing Limits? [closed]
- Meta box not displaying on the plugin page
- Wrong block appender button showing
- How to make a Template page to show the information of different things Shop and Product page?
- public custom posts not showing in my wordpress plugin