【问题标题】:Wordpress remove_filter wpautop custom wysiwygWordpress remove_filter wpautop 自定义所见即所得
【发布时间】:2014-01-08 21:07:59
【问题描述】:

如何使用这个钩子来自定义所见即所得?

我试过这个:

remove_filter('the_content', 'wpautop' );
add_filter('the_content', 'wpautop' , 12);

这就是我通常用于默认 wordpress 内容编辑器的内容,但它不适用于 Advanced Custom Fields Wysiwyg?

有什么帮助吗?

【问题讨论】:

    标签: php html wordpress function hook


    【解决方案1】:

    没关系找到解决方案!

    只需这样做:

    remove_filter('acf_the_content', 'wpautop' );
    add_filter('acf_the_content', 'wpautop' , 12);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多