如何通过简码Shortcode 添加PHP到 WPBakery

原文章https://wpcodeus.com/php-code-to-wpbakery-visual-composer/

// [site-title] Shortcode - Returns the site title.

add_shortcode( 'site-title', 'wpc_shortcode_site_title' );
function wpc_shortcode_site_title() {
$blogname = get_option( 'blogname' );
return $blogname;
}