嗯,写作echo ninja_forms_field_submission_left_display( $field_id, $data );
如果$field_id
和$data
是正确的。
创建短代码应该同样简单:
function field_sc_wpse_145003($atts,$content) {
if (!isset($atts[\'field_id\'])) return;
return ninja_forms_field_submission_left_display( $atts[\'field_id\'], $atts );
}
add_shortcode(\'fieldfc\',\'field_sc_wpse_145003\');
echo do_shortcode(\'[fieldfc field_id="abc" default_content="def"]\');