在保存产品之前挂钩获取 $_POST 变量 [英] Hook to get $_POST variable before save product

查看:27
本文介绍了在保存产品之前挂钩获取 $_POST 变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在保存/更新产品(包括元数据)之前,是否有任何钩子可以获取 $_POST 变量

Is there any hook to get the $_POST variable before save/Update the product including metas

推荐答案

save_post 创建帖子或页面时会触发钩子.这也适用于产品,因为产品也在 woocommerce 中存储为帖子.

save_post hook is fired when a post or page is created. This will also work for the product because the product is also stored as a post in woocommerce.

欲知更多详情,

希望对您有所帮助.

这篇关于在保存产品之前挂钩获取 $_POST 变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆