Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // modify api base from "wp-json" to "api"
- add_filter('json_url_prefix', 'modify_url_base' );
- /**
- * Modifying Base URL from 'WP-JSON' to 'api'
- */
- function modify_url_base($prefix) {
- return 'api';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement