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?
- Creating a default Custom Post Template that a Theme can override
- Function to activate WordPress theme inside a plugin
- WordPress Plugin as ‘Library’ From Abstract Application?
- remove custom taxonomy metabox form custom post type
- Custom Post Type Statuses
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- Custom Post Type | Fatal Error on register_post_type()
- How to integrate plugin in WordPress theme
- Is there a way to alter the order in which the plugins appear in the page?
- how to load the language file in plugin?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- 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
- custom payment gateway in woocommerce failed to connect to remote api server
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to redirect users to their profile after they successfully edit their profile
- Adding CSS to custom post type admin page causes error
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Custom post types – remove default post supports through empty array?
- Using ACF default value to autoincrement a number field
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Plugin function inside custom plugin
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Release the plugin in the WordPress repository where redux is used
- Adding custom meta boxes to specified custom post type
- Minimize and Uglify WordPress Plugin Files
- How to create a plugin that includes all the other plugins?
- Why is it important to check for isset and is_array before checking in_array in this example?
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- WordPress API functions not working at AJAX functions.php call
- Don’t load the theme for a page FROM a plugin EDITED
- How do you create a re-useable HTML fragment in wordpress
- WordPress plugin with its own “site”/theme
- Delete data from custom table when deleting a post
- Integrating Custom Database with WordPress
- How display specific category post to specific users?
- Xamp installed local wordpress not allowing to publish or install plugin
- How to keep plugin (media-sync) running even the tab is closed?
- Need to edit author permissions | custom taxonomy
- Is it possible to pin a post in second position from top
- Widgets are not displaying in the admin panel
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- How to display the category name in the tab and post inside the tab in WordPress?
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- woocommerce: Customize email with item total count
- Adding LOAD MORE on a page
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Child theme modifications not showing up
- How can I see $post object in frontend from functions.php?
- Move plugin pages from dashboard to front-end
- Creating custom “player-objects”
- when i activate my WordPress plugin cannot see customizer options or preview
- Installation failed, trying to install ANY plugin
- Echo custom admin field into a is_single()
- How to use custom footer template in a site-plugin?
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- Custom post type that lets users create a set of posts?
- Where do the section input fields values are stored in database
- Update Plugin Without Overwriting Custom Settings
- Display_rows() and column_cb() strange behaviour
- How to show post attachment image
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- What is the Object for WP_Error Class?
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- How wordpress plugin hooks works? [duplicate]
- 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
- show_admin_bar filter not called inside plugin class
- Need to add custom cart item data
- Remove H1 title in admin post edit screen
- How to Display News in a Timeline with Headline, Category, and Time?
- Remove and strip html tag values