Filters for the Inquiry Board

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Filters for the Inquiry Board

Viewing 3 reply threads
  • Author
    Posts
    • #80942
      me
      Participant

      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

    • #81627
      WCFM Forum
      Keymaster

      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

    • #81629
      me
      Participant

      Great, thank you!

    • #81765
      WCFM Forum
      Keymaster

      You are welcome 🙂

Viewing 3 reply threads
  • You must be logged in to reply to this topic.