I wanted to add html "required" to the product name when add new product but not sure how to edit the page. Can anyone show or point out where the php file is located at?
I wanted to add html "required" to the product name when add new product but not sure how to edit the page. Can anyone show or point out where the php file is located at?
2
Answers
Code is located in this file https://github.com/WordPress/WordPress/blob/master/wp-admin/edit-form-advanced.php#L522
However, you must not modify WordPress core files.
and Please check this gist https://gist.github.com/elvismdev/60cb39da63dd97d87b8f2e64ddb1ba29 that will help your make your title required and prompt warning when you’ll publish the post
your desired php file must exist at below address:
In my case, my contact-us page is at:
hope this will help someone.
Thanks