Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2015 05:01
What would you like to do?
Remove + sign from upvote
* 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 <>
* @link 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