0
点赞
收藏
分享

微信扫一扫

WordPress修改搜索框

pipu 2022-10-17 阅读 32


  • 介绍

WordPress默认提供的搜索框太简陋了?DIY啊。

  • 玉照

[caption id="attachment_3504" align="aligncenter" width="340"]​​​​ pre_get_search_form[/caption]

 

  • 代码

[codesyntax lang="php"]


add_action('pre_get_search_form', 'suren_pre_get_search_form'); function suren_pre_get_search_form($form) { echo '<div>Pre Search</div>'; }



举报

相关推荐

0 条评论