Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('wcfm_product_manage_fields_images', function ($fields) {
- if (isset($fields['featured_img'])) {
- $fields['featured_img']['custom_attributes'] = ['required' => 1, 'required_message' => 'Featured Image is required'];
- }
- return $fields;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement