本文整理汇总了PHP中wpcf7_autop函数的典型用法代码示例。如果您正苦于以下问题:PHP wpcf7_autop函数的具体用法?PHP wpcf7_autop怎么用?PHP wpcf7_autop使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpcf7_autop函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form_do_shortcode
function form_do_shortcode()
{
global $wpcf7_shortcode_manager;
$form = $this->form;
if (WPCF7_AUTOP) {
$form = $wpcf7_shortcode_manager->normalize_shortcode($form);
$form = wpcf7_autop($form);
}
$form = $wpcf7_shortcode_manager->do_shortcode($form);
$this->scanned_form_tags = $wpcf7_shortcode_manager->scanned_tags;
return $form;
}
示例2: form_do_shortcode
public function form_do_shortcode()
{
$manager = WPCF7_ShortcodeManager::get_instance();
$form = $this->prop('form');
if (WPCF7_AUTOP) {
$form = $manager->normalize_shortcode($form);
$form = wpcf7_autop($form);
}
$form = $manager->do_shortcode($form);
$this->scanned_form_tags = $manager->get_scanned_tags();
return $form;
}
示例3: replace_all_form_tags
public function replace_all_form_tags()
{
$manager = WPCF7_FormTagsManager::get_instance();
$form = $this->prop('form');
if (WPCF7_AUTOP) {
$form = $manager->normalize($form);
$form = wpcf7_autop($form);
}
$form = $manager->replace_all($form);
$this->scanned_form_tags = $manager->get_scanned_tags();
return $form;
}