Base url of WordPress website shortcode - Brown Surfing

Base url of WordPress website shortcode

Posted on: July 27th, 2022
By: Efrain Lemus

/*Base URL shorcode*/
add_shortcode( 'base_url', 'baseurl_shortcode' );
function baseurl_shortcode( $atts ) {

    return site_url();
	// [base_url]

}

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published.