admin管理员组文章数量:1130349
I am customising my product post type and auto generating the post title using add_action('acf/save_post').
See my php below for this...
class Product {
/**
* product constructor method.
*/
public function __construct() {
// process product details when saving the post
add_action('acf/save_post', array($this,'action_product_title'), 20);
}
/**
* Action to run modifications when saving the post
* @return void
*/
public function action_product_title ($post_id) {
// my product title modifications...
// finally, return
return;
}
}
new Product();
My question is, is there a hook or action that I can add to my construct to make the post title input field disabled using php.
The idea being, the post title input is still visible, but the input is disabled from manual editing.
Thanks in advance for any help.
I am customising my product post type and auto generating the post title using add_action('acf/save_post').
See my php below for this...
class Product {
/**
* product constructor method.
*/
public function __construct() {
// process product details when saving the post
add_action('acf/save_post', array($this,'action_product_title'), 20);
}
/**
* Action to run modifications when saving the post
* @return void
*/
public function action_product_title ($post_id) {
// my product title modifications...
// finally, return
return;
}
}
new Product();
My question is, is there a hook or action that I can add to my construct to make the post title input field disabled using php.
The idea being, the post title input is still visible, but the input is disabled from manual editing.
Thanks in advance for any help.
本文标签: actionsin the post adminis it possible to make the post title input disabled using php
版权声明:本文标题:actions - in the post admin, is it possible to make the post title input disabled using php? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749137535a2321569.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论