array('interval' => 604800, 'display' => 'Once Weekly'), 'fortnightly' => array('interval' => 1209600, 'display' => 'Once Fortnightly'), ); } //this filter adds to the list of schedule options for the WP Cron. add_filter('cron_schedules', 'lbakut_cron_schedules'); /* * The following actions and filters are what makes the plugin function * correctly. */ add_action('wp_dashboard_setup', 'lbakut_dashboard_setup'); add_action('wp_loaded', 'lbakut_log_activity_start'); add_action('admin_menu', 'lbakut_admin_menu'); add_action('admin_head', 'lbakut_add_admin_header'); add_filter('the_content', 'lbakut_parse_shortcode'); add_action('admin_print_scripts-index.php', 'lbakut_add_scripts'); /* * Activation and uninstallation actions. The plugin upgrade script is * located in the activation hook function. */ register_activation_hook(__FILE__, 'lbakut_activation_setup'); register_deactivation_hook(__FILE__, 'lbakut_deactivate'); register_uninstall_hook(__FILE__, 'lbakut_uninstall'); /* * The next actions are necessary for the lbakut cron jobs to run. */ add_action('lbakut_update_browscap', 'lbakut_update_browscap'); add_action('lbakut_do_cache_and_stats', 'lbakut_do_cache_and_stats'); add_action('lbakut_database_management_cron', 'lbakut_database_management_cron'); ?>