Skip to content

Action and Filter Hooks

Jo Dickson edited this page Jan 15, 2019 · 2 revisions

This page is a work in progress--please check back soon.


This theme includes the following action and filter hooks, which developers can utilize in a child theme or custom plugin to override specific theme styles or functionality.

Navigation

{{Update this list as necessary}}


{{my_hook_1}}

{{Explain what this hook does and why a developer would want/need to utilize it.}}

Parameters

  • ${{argument_1}} {{string/int/obj/array/bool}}

    {{Briefly explain what is stored in this param}}

  • ${{argument_2}} {{string/int/obj/array/bool}}

    {{Briefly explain what is stored in this param}}

Return

{{string/int/obj/array/bool/void}}: {{Description of what functions using this hook should return}}

Example usage

// {{Describe what this filter is doing}}
function ...( ${{argument_1}}, ${{argument_2}} ) {
    ...
}

add_filter( '{{my_hook_1}}', '...', 10, 2 );

{{my_hook_2}}

{{Explain what this hook does and why a developer would want/need to utilize it.}}

Parameters

  • ${{argument_1}} {{string/int/obj/array/bool}}

    {{Briefly explain what is stored in this param}}

  • ${{argument_2}} {{string/int/obj/array/bool}}

    {{Briefly explain what is stored in this param}}

Return

{{string/int/obj/array/bool/void}}: {{Description of what functions using this hook should return}}

Example usage

// {{Describe what this filter is doing}}
function ...( ${{argument_1}}, ${{argument_2}} ) {
    ...
}

add_filter( '{{my_hook_2}}', '...', 10, 2 );

{{Add hook information as needed for all hooks provided in this theme}}

Clone this wiki locally