Skip to content

Latest commit

 

History

History
200 lines (100 loc) · 6.86 KB

API.md

File metadata and controls

200 lines (100 loc) · 6.86 KB

API Testimonials

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

Actions

  • testimonials_widget_settings_add_help_tabs

    Modify the settings page help tabs.

  • testimonials_widget_scripts

    Make additional wp_register_script and wp_enqueue_script calls as needed.

  • testimonials_widget_styles

    Make additional wp_register_style and wp_enqueue_style calls as needed.

  • testimonials_widget_update

    Make additional update related calls as needed.

Filters

Frontend

  • testimonials_widget_cite_html

    Adjust cite contents. example

  • testimonials_widget_content_more

    More content ellipsis. example

  • testimonials_widget_get_testimonials_html

    Customize the contents and layout within get_testimonials_html.

  • testimonials_widget_get_testimonial_html

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

  • testimonials_widget_gravatar_size

    Change the Gravatar size. example

  • testimonials_widget_image_size

    Change the image size. example

  • testimonials_widget_next_posts_link_text

    Configure Next page indicator. example

  • testimonials_widget_previous_posts_link_text

    Configure Previous page indicator. example

  • testimonials_widget_testimonial_html_single_content

    Customize single view content before appending filter testimonials_widget_testimonial_html_single results. example

  • testimonials_widget_testimonial_html_single

    Customize testimonials single view output post get_testimonial_html. example

  • testimonials_widget_testimonial_html

    Customize testimonials list and widget output post get_testimonial_html. example

  • testimonials_widget_get_testimonial_html_class

    Alter dynamically generated CSS per testimonial

  • testimonials_widget_testimonials_css

    Alter dynamically generated CSS

  • testimonials_widget_testimonials_js

    Alter dynamically generated JavaScript. example

  • testimonials_widget_testimonials_js_internal

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

  • testimonials_widget_wp_pagenavi

    Configure WP-PageNavi specifically for Testimonial Widgets. example

  • testimonials_widget_review_name_length

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

  • testimonials_widget_schema

    Customize schema contents.

  • testimonials_widget_schema_review

    Customize schema review meta contents.

  • testimonials_widget_schema_agg_rating

    Customize schema aggregate rating for item.

  • testimonials_widget_schema_author

    Customize schema author contents.

  • testimonials_widget_schema_item

    Customize schema reviewed item contents.

Backend

  • testimonials_widget_cache_get

    Caching grabber. example

  • testimonials_widget_cache_set

    Caching setter. example

  • testimonials_widget_columns

    Customize testimonial posts column headers. example

  • testimonials_widget_content

    Testimonial content parser helper. example

  • testimonials_widget_data

    Process testimonials data before display processing. example

  • testimonials_widget_defaults_single

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

  • testimonials_widget_defaults

    Create a global or central Testimonials configuration. example

  • testimonials_widget_meta_box

    Modify Testimonial Data fields. example. Configuration examples

  • testimonials_widget_posts_custom_column

    Customize testimonial posts column contents. example

  • testimonials_widget_query_args

    Alter WP_Query arguments for testimonial selection. example

  • testimonials_widget_sections

    Alter section options. example

  • testimonials_widget_settings

    Alter setting options. example

  • testimonials_widget_validate_settings

    Validate settings helper. example

  • testimonials_widget_version

    Version tracking for settings. example

  • testimonials_widget_widget_options

    Alters displayed widget options. example

  • testimonials_widget_display_setting

    Alows for display of custom input types.

  • testimonials_widget_settings_defaults

    Override settings defaults with your own.

  • tba_register_post_type_args

    Overrides register_post_type arguments. example

  • tba_register_category_args

    Overrides register_taxonomy arguments.

  • tba_register_tags_args

    Overrides register_taxonomy arguments.

Need More?

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