Last active
January 30, 2018 15:39
-
-
Save joshapgar/2e981fa7bf4b33ac96e5bbb140e9aeb7 to your computer and use it in GitHub Desktop.
Create angular app at specified URL and allow refresh from within Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function angular_app_rewrite_rules() { | |
$angular_app_page_id = 20; | |
add_rewrite_rule('^angular-app/*', 'index.php?page_id=' . $angular_app_page_id, 'top'); | |
} | |
add_action('init', 'angular_app_rewrite_rules'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment