Actions and filters

WordPress documentation on actions and filters.

https://codex.wordpress.org/Plugin_API/Action_Reference

https://codex.wordpress.org/Plugin_API/Filter_Reference

Actions

board_changed_hook

Parameters: $page_id, the id of the page that the board is connected to (action will fire multiple times if board is connected to multiple pages).

Description: This action is triggered when a board has been updated or changed in any way.

Filters

ew_content_container_fill

Parameters: $array = [], starts out with an empty array and let the developer fill it with content, mainly article objects.

Description: This filter let the developer populate an array of article objects for use in a board, the array will be the data that is used when rendering "Content Containers" in a board. A typical use for this would be an automatic category page, the same board could be used and the page would use different queries to Open Content to populate the content container data with articles for a specific category.

everylist_iframe_buttons

Everylist is deprecated. Use OC List instead.

Parameters: $button_arr = [], an array of button data.

Description: This filter has an array of buttons in, with text and src of the link. The buttons will be added to the Everylist interface.

Example:

add_filter( 'everylist_iframe_buttons', function($button_arr) {

    $button_arr[] = [
        'title' => 'Example button',
        'src'   => 'https://www.example.com/'
    ];

    return $button_arr;
} );

Last updated