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 can I keep a WordPress dropdown menu open when navigating to a child page?
- How to structure a plugin
- is_plugin_active function doesn’t exist
- Custom pages with plugin
- Custom media upload content for inserting custom post shortcode
- Redesigning Custom Post Type “Add New” page
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- WordPress Plugin Development In MVC Architecture, How?
- Is it a good idea to edit an already existing plugin to add more functionality?
- Checking if an attribute exists in a shortcode
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Creating a default Custom Post Template that a Theme can override
- What is the correct way for a theme to support plugin UIs?
- Create page when plugin is activated
- How to call “page specific menu items” in template [closed]
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- How can I limit functionality in one version of a plugin?
- Integrating plugins in themes
- WordPress Plugin as ‘Library’ From Abstract Application?
- How to show custom message once on plugin activation?
- Add CSS animation as Preloader to WordPress
- Custom comment type maybe?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to make my plugin theme-independent?
- WordPress network: set themes and plugins for new blog
- How to get the custom page get_permalink?
- Should I use RIPS tool to test my themes and plugins?
- Themes VS Plugins [duplicate]
- Failed to invoke other hook from the init hook
- Remove POST_TYPE from custom post type permalink
- remove custom taxonomy metabox form custom post type
- Custom Post Type Statuses
- Can a plugin add to header/footer/body content?
- Created Widget Not Showing up on Admin Panel
- How do I future proof my older WordPress theme?
- How to add jquery to my custom post type wp plugin
- Display_rows() and column_cb() strange behaviour
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- How to show post attachment image
- Multiselect value in wp_query
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Add Excerpt On Quicksand Plugin
- show Visual form builder in the front end
- What is the Object for WP_Error Class?
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Get page type to display content
- get_option include in my adsense
- Breadcrumb is not generating the correct post page url
- Making a Custom Post Type Publish Loop
- How wordpress plugin hooks works? [duplicate]
- 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
- How to create post comparison in wordpress
- 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?
- WordPress Customise
- 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?
- Create Custom Coupon Type
- manage_{taxonomy}_custom_column not working
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- WordPress isn’t sending welcome email with the password reset
- how to make wordpress remember my choice
- Is website for online game guides doable in WordPress? [closed]
- How to Enfroce Domain Licensing Limits? [closed]
- Meta box not displaying on the plugin page
- add_meta_box showing blank screen in my page
- Wrong block appender button showing
- How to make a Template page to show the information of different things Shop and Product page?
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- What are Seeds? [closed]
- public custom posts not showing in my wordpress plugin
- How to provide page_template path in custom plugin using WordPress
- I have created a custom plugin. After activation it creating page but i am not getting how to add another php file at page content?
- Best approach to change mobile background image and adding its class
- show_admin_bar filter not called inside plugin class