API – Testimonials Widget Premium

Actions

Backend

  • twp_form_saveSave or modify form fields upon testimonials form submission. example

Filters

Frontend

  • twp_scripts_displayCustomize $scripts_display contents. Useful for changing the star image path to something you’d like to use.
  • twp_html_linkLink filtering for the testimonialswidgetpremium_link_list shortcode.
  • twp_more_text‘Read more’ text replacement. Example
  • twp_link_title_text‘Complete testimonial by ‘ text replacement.
  • twp_more_ellipsisEllipsis, ‘…’, text replacement. Example
  • tw_cite_htmlAdjust cite contents. Example
  • twp_form_headingForm header text replacement. Example

Backend

  • tw_disable_cacheAccepts boolean to use caching or not.
  • tw_cache_getCaching grabber. Example
  • tw_cache_setCaching setter.
  • twp_form_optionsFilter form options. Example Add a field
  • twp_send_mail_notification_toAlter recipient for send_mail_notification.

    $to = apply_filters( 'twp_send_mail_notification_to', $to, $post_id );

  • twp_send_mail_notification_subjectAlter subject for send_mail_notification.

    $subject = apply_filters( 'twp_send_mail_notification_subject', $subject, $post_id );

  • twp_send_mail_notification_bodyAlter body content for send_mail_notification.

    $body = apply_filters( 'twp_send_mail_notification_body', $body, $post_id );

  • twp_send_mail_notification_headersAlter headers for send_mail_notification.

    $headers = apply_filters( 'twp_send_mail_notification_headers', $headers, $post_id );

  • twp_send_mail_notification_attachmentAlter attachment for send_mail_notification.

    $attachment = apply_filters( 'twp_send_mail_notification_attachment', self::$mail_attachment, $post_id );

Need More?

Further Examples and more can be found by reading and searching the Testimonials Knowledge Base and source code.