Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM › Filters for the Inquiry Board
- This topic has 3 replies, 2 voices, and was last updated 6 years, 1 month ago by WCFM Forum. 
- AuthorPosts
- September 9, 2019 at 10:04 pm #80942me ParticipantHi, I was trying to modify the inquiry board content and realized there are no filters in the controller php file. 
 Specifically, I was trying to limit the inquiry content length that shows in the table. Currently the content is just dumped into the table, and it looks pretty bad with long inquiries. To fix this, on line 123 of wcfm-controller-enquiry.php, I Wanted to change
 $wcfm_enquirys_single->enquiry
 to
 substr(strip_tags($wcfm_enquirys_single->enquiry), 0, 50).Would it be possible to add some filters there, so we don’t have to modify the base plugin code? Thanks 
- September 14, 2019 at 10:13 pm #81627WCFM Forum MemberHI, OK, we will add this filter for the purpose – apply_filters( 'wcfm_enquiry_message_display', $wcfm_enquirys_single->enquiry, $wcfm_enquirys_single->ID )Thank You 
- September 14, 2019 at 10:18 pm #81629me ParticipantGreat, thank you! 
- September 15, 2019 at 3:03 am #81765WCFM Forum MemberYou are welcome 🙂 
 
- AuthorPosts
- You must be logged in to reply to this topic.

 
 