Advertisement
geminilabs

[site-reviews] change tag used in review titles

Apr 22nd, 2019 (edited)
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement