Feature daily lottery results on your website.
Unfortunately Alabama, Alaska, Hawaii, Mississippi, Nevada, Utah & Wyoming have no lottery system. If you're in this state, contact your law maker and get a lottery going! It's a great way to raise money for education, conservation, and other great causes.
The following filters have been added to allow for modification of code using apply_filters():
lottery_widget, lottery_widget_{$widget_number}lottery_resultslottery_game_namelottery_game_datelottery_game_caption, lottery_game_caption_{$state_code}, lottery_game_caption_{$state_code}_{$game_id}lottery_game_bonus, lottery_game_bonus_{$state_code}, lottery_game_bonus_{$state_code}_{$game_id}lottery_game_multiplier, lottery_game_multiplier_{$state_code}, lottery_game_multiplier_{$state_code}_{$game_id}lottery_game_wildcard, lottery_game_wildcard_{$state_code}, lottery_game_wildcard_{$state_code}_{$game_id}, lottery_game_wildcard_resultlottery_thank_you_linkIf you want to change some code in the widget, you can use the WordPress add_filter() function to achieve this.
You can add code to your theme's functions.php file that will modify the widget output. Here's an example:
function my_example_function($widget) {
// The $widget variable is the output of the widget
// This will replace 'this word' with 'that word' in the widget output.
$widget = str_replace('this word', 'that word', $widget);
// Make sure to return the $widget variable, or it won't work!
return $widget;
}
add_filter('lottery_widget', 'my_example_function');
If you want to remove game captions from the widget, add the following to your active theme's functions.php file:
add_filter('lottery_game_caption', 'lottery_return_no_caption');
function lottery_return_no_caption($caption = null) {
return '';
}
Requires: 2.8 or higher
Compatible up to: 3.0.5
Last Updated: 2010-11-8
Downloads: 850
Got something to say? Need help?