Hooks: Actions & Filters

January 20, 2015

Introduction

Hooks are provided by WordPress and EventON to allow your plugin or theme to hook into the code to call functions in your plugin at specific times. There are two kinds of hooks:

Actions: Actions are hooks are lauched at specific points during execution or when specific events occur.

Filters: Filters are hooks that modify data before they are returned.

 

Below is a list of Actions and Filters used in EventON.

Actions:

In class-calendar-generator.php

eventon_cal_variable_action

eventon_cal_end

eventon_eventcard_additions

eventon_sorting_filters

eventon_below_sorts

eventon_after_loadbar

 

in class-calendar-body.php

eventon_cal_variable_action_au

eventon_calendar_header_content

evo_cal_footer

 

in class-calendar-shell.php

eventon_event_sorting_{$sort_by}

 

in eventon.php

eventon_init

eventon_enqueue_scripts

eventon_activate

eventon_deactivate

 

Filters:

in class-calendar-generator.php

eventon_wp_query_args

eventon_event_frequency_{$frequency}

eventon_evt_fe_ptime

eventon_evt_fe_time

eventon_eventcard_date_html

eventon_eventcard_array

eventon_eventtop_one

eventon_eventtop_two

eventon_eventtop_html

eventon_event_cal_short_info_line

eventon_so_filters

 

in class-calendar-shell.php

eventon_shortcode_defaults

eventon_calhead_shortcode_args

 

in eventon.php

eventon_template_url

eventon_google_map_url

Did this article help you? If not, send us a ticket via helpdesk

Ready to setup your calendar?