Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp site url link from admin

$url = site_url( '/secrets/', 'https' );
echo $url;
//Output: https://www.example.com/secrets/ or https://www.example.com/wordpress/secrets/
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wp #site #url #link #admin
ADD COMMENT
Topic
Name
3+8 =