Created
April 21, 2021 13:17
-
-
Save seredniy/b9a841fa8dddfd1071dd74ebca7b5836 to your computer and use it in GitHub Desktop.
Get WordPress site domain
This file contains 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
$site_domain = wp_parse_url( site_url(), PHP_URL_HOST ); // site.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment