Remove + sign from upvote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The hook allows to remove + sing from upvote count | |
* | |
* How to use it: | |
* Nothing complicated, just place 'output_split' method into your theme file or plugin layer and done. | |
* | |
* Important: | |
* Make sure your theme should not have this function already. If there is than add this code | |
* to that function and modify as needed | |
* | |
* @category Hook | |
* @since 1.7 | |
* @author Q2A Market <dev@q2amarket.com> | |
* @link http://www.q2amarket.com Q2A Market | |
*/ | |
public function output_split($parts, $class, $outertag='span', $innertag='span', $extraclass=null) | |
{ | |
$parts['data'] = str_replace('+', '', $parts['data']); | |
parent::output_split($parts, $class, $outertag='span', $innertag='span', $extraclass=null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment