Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

268 lines (134 sloc) 8.344 kb

API - Testimonials Widget

The Testimonials Widget plugin comes with its own set of actions and filters, as described below.

Actions

  • tw_settings_add_help_tabs

    Modify the settings page help tabs.

  • tw_scripts

    Make additional wp_register_script and wp_enqueue_script calls as needed.

  • tw_styles

    Make additional wp_register_style and wp_enqueue_style calls as needed.

  • tw_update

    Make additional update related calls as needed.

Filters

Frontend

  • tw_cite_html

    Adjust cite contents. example

  • tw_content_more

    More content ellipsis. example

  • tw_get_testimonials_html

    Customize the contents and layout within get_testimonials_html.

  • tw_get_testimonial_html

    Customize testimonial contents and layout within get_testimonial_html. Useful for moving processed parts around than regenerating everything from scratch. example

  • tw_gravatar_size

    Change the Gravatar size. example

  • tw_image_size

    Change the image size. example

  • tw_next_posts_link_text

    Configure Next page indicator. example

  • tw_previous_posts_link_text

    Configure Previous page indicator. example

  • tw_testimonial_html_single_content

    Customize single view content before appending filter tw_testimonial_html_single results. example

  • tw_testimonial_html_single

    Customize testimonials single view output post get_testimonial_html. example

  • tw_testimonial_html

    Customize testimonials list and widget output post get_testimonial_html. example

  • tw_get_testimonial_html_class

    Alter dynamically generated CSS per testimonial

  • tw_testimonials_css

    Alter dynamically generated CSS

  • tw_testimonials_js

    Alter dynamically generated JavaScript. example

  • tw_testimonials_js_internal

    Inject dynamically generated JavaScript to active/next functional area..

  • tw_wp_pagenavi

    Configure WP-PageNavi specifically for Testimonial Widgets. example

  • tw_review_name_length

    Maximium length of review schema's name. Default is 156 characters.

  • tw_schema

    Customize schema contents.

  • tw_schema_review

    Customize schema review meta contents.

  • tw_schema_agg_rating

    Customize schema aggregate rating for item.

  • tw_schema_author

    Customize schema author contents.

  • tw_schema_item

    Customize schema reviewed item contents.

  • tw_get_template_part

    Allow template choices to be filtered. Usage

  • tw_template_paths

    Allow ordered list of template paths to be amended. Usage

  • tw_categories_dropdown_args

    Used for modifying wp_dropdown_categories as part of the testimonials' categories widget.

  • tw_categories_args

    Used for modifying wp_list_categories as part of the testimonials' categories widget.

  • tw_tag_cloud_args

    Used for modifying wp_tag_cloud as part of the testimonials' tag cloud widget.

  • tw_recent_testimonials_args

    Used for modifying WP_Query as part of the recent testimonials widget.

  • tw_archives_dropdown_args

    Used for modifying wp_get_archives as part of the testimonials archive widget.

  • tw_archives_args

    Used for modifying wp_get_archives as part of the testimonials archive widget.

Backend

  • tw_cache_get

    Caching grabber. example

  • tw_cache_set

    Caching setter. example

  • tw_columns

    Customize testimonial posts column headers. example

  • tw_content

    Testimonial content parser helper. example

  • tw_data

    Process testimonials data before display processing. example

  • tw_defaults_single

    Create a global or central Testimonials configuration for single view. example. example

  • tw_defaults

    Create a global or central Testimonials configuration. example

  • tw_meta_box

    Modify Testimonial Data fields. example. Configuration examples

  • tw_posts_custom_column

    Customize testimonial posts column contents. example

  • tw_query_args

    Alter WP_Query arguments for testimonial selection. example

  • tw_sections

    Alter section options. example

  • tw_settings

    Alter setting options. example

  • tw_validate_settings

    Validate settings helper. example

  • tw_version

    Version tracking for settings. example

  • tw_slider_widget_options

    Alters displayed widget options. example

  • tw_categories_widget_options

    Used for modifying widget options as part of the testimonials' categories widget. similar example

  • tw_tag_cloud_widget_options

    Used for modifying widget options as part of the testimonials' tag cloud widget. similar example

  • tw_recent_testimonials_widget_options

    Used for modifying widget options as part of the recent testimonials widget. similar example

  • tw_archives_widget_options

    Used for modifying widget options as part of the testimonials archives widget. similar example

  • tw_display_setting

    Alows for display of custom input types.

  • tw_settings_defaults

    Override settings defaults with your own.

  • tw_register_post_type_args

    Overrides register_post_type arguments. example

  • tw_register_category_args

    Overrides register_taxonomy arguments.

  • tw_register_tags_args

    Overrides register_taxonomy arguments.

  • tw_examples_html

    Enhance or override examples HTML.

  • tw_used_with_codes

    Enhance or override primary widgets shortcode and theme function accessibility.

  • tw_options_widgets

    Enhance or override widgets included for options documentation.

  • tw_used_with_codes_widgets

    Enhance or override additionally widgets shortcode and theme function accessibility.

  • tw_options_html

    Enhance or override options HTML.

Need More?

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

Jump to Line
Something went wrong with that request. Please try again.