可以创建一个生成输出的函数,然后使用Shortcode API:
/**
* Returns --> Contact | Terms of Service | Privacy Policy | Careers
*
* @parm array $atts
* @return string
*/
function wpse241695_arrow_contact_terms_of_service_privacy_policy_careers( $atts ) {
return \'--> Contact | Terms of Service | \' .
\' Privacy Policy | Careers\';
}
// Wire up a handy shortcode to output the string.
// Usage: [arrow_contact_terms_of_service_privacy_policy_careers]
add_shortcode( \'arrow_contact_terms_of_service_privacy_policy_careers\',
\'wpse241695_arrow_contact_terms_of_service_privacy_policy_careers\' );