我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何从子主题禁用wordpress父主题中的钩子

I need to duplicate a hook from wordpress parent theme to child theme.

How do I disable the hook in wordpress parent theme and call it from child theme?

For example:

add_action('lr_header', 'lr_header_fnc');

Maybe,

remove_action('lr_header', 'lr_header_fnc');

remove_action

近期文章

  • .htaccess从路径重定向到文件
  • 无法将字符串插入mysql查询
  • mpdf无法从链接的样式表中呈现样式
  • @include不在Laravel5.4中工作[重复]
  • Curl PHP PUT请求更改文件内容
  • jQuery ajax将数据发布到php
  • 从DB向数组插入数据并打印json
  • wordpress重定向不通过表单工作
  • Laravel 5.4 Scheduler Cron无法在Cloudway服务器上运行
  • Bootstrap Post Carousel在页面模板中阻止其他PHP
  • 在短代码中包装一个函数,然后在我的wordpress网站上的编辑器中返回并回显结果
  • 如何在PHP中从现有的多维数组创建新数组
  • PHP中的引导程序警报消息
  • 仅显示Google AdSense广告
  • 使用PHP扫描DynamoDB表以获取当月的结果
  • 将PHP脚本转换为通用案例函数
  • PHP:反洪水(蜜罐)[关闭]
  • PHP foreach行为2列
  • angularjs显示mysql 2表
  • 使用排序array_chunk

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华