http://intelyblog.com/wp-content/uploads/2022/07/IntelyBlog.png 0 0 rush-intely http://intelyblog.com/wp-content/uploads/2022/07/IntelyBlog.png rush-intely2022-04-06 17:59:182022-04-06 17:59:24How to convert any full URL path to relative to WordPress installation (root)
How to convert any full URL path to relative to WordPress installation (root)
If you want to make a URL relative from the WordPress root, you can use the following WordPress function.
<?php $full_url = "https://intelyblog.com/how-to-programmatically-add-a-wordpress-admin-user-using-functions-php/"; $relative_to_wordpress = wp_make_link_relative($full_url); echo $relative_to_wordpress; ?>
That’s all! Happy coding!