1
如何更新自定義發佈自定義字段的值當郵政保存在管理員?更新後自定義發佈自定義字段值當郵政保存在wp-admin
我試圖在misc.php使用此爲管理部分:
add_action('pre_post_update', 'do_something_with_a_post');
function do_something_with_a_post($id) {
global $post;
update_post_meta($id, 'ct_Course_Dur_text_d19c', 'test12');
)
但它無法正常工作。
你的意思是你的自定義字段值arnt節省後保存? – codepixlabs