Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Filters for the Inquiry Board
- This topic has 3 replies, 2 voices, and was last updated 5 years, 3 months ago by WCFM Forum.
- AuthorPosts
- September 9, 2019 at 10:04 pm #80942meParticipant
Hi,
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 ForumMember
HI,
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 #81629meParticipant
Great, thank you!
- September 15, 2019 at 3:03 am #81765WCFM ForumMember
You are welcome 🙂
- AuthorPosts
- You must be logged in to reply to this topic.