Created
July 29, 2012 14:54
-
-
Save ringmaster/3199354 to your computer and use it in GitHub Desktop.
Exclude posts with info debate != 0 from the home display
This file contains hidden or 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
public function filter_posts_get_update_preset($preset_parameters, $presetname, $paramarray) { | |
switch($presetname) { | |
case 'home': | |
$notallinfo = isset($preset_parameters['not:all:info']) ? Utils::single_array($preset_parameters['not:all:info']) : array(); | |
$notallinfo['debate'] = 0; | |
$preset_parameters['not:all:info'] = $notallinfo; | |
break; | |
} | |
return $preset_parameters; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment