![如何通过简码Shortcode 添加PHP到 WPBakery](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201085%20716'%3E%3C/svg%3E)
原文章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;
}