Advertisement
geminilabs

[site-reviews] change tag used in review titles

Apr 22nd, 2019 (edited)
553
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Replaces the <h3> in review titles with <h4>.
  3.  * Paste this in your active theme's functions.php file.
  4.  * @param string $field
  5.  * @return string
  6.  * @since Site Reviews v5.0
  7.  */
  8. add_filter('site-reviews/review/wrap/title', function ($field) {
  9.     return str_replace(['<h3','h3>'], ['<h4','h4>'], $field);
  10. });
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement