Skip to content

Instantly share code, notes, and snippets.

@danielpowney
Created March 1, 2016 09:26
Show Gist options
  • Save danielpowney/7ae02ec32759d7db317b to your computer and use it in GitHub Desktop.
Save danielpowney/7ae02ec32759d7db317b to your computer and use it in GitHub Desktop.
Class 'mrp-filter' is passed to the template for auto placement of rating results. This can be used to add logic to the template e.g change default result type.
<?php
if ( $result_type == MRP_Multi_Rating::SCORE_RESULT_TYPE || strpos( $class, 'mrp-filter' ) > 0 ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment