Skip to content

Collection of hooks that can be used to engage with certain actions of our plugin.

Notifications You must be signed in to change notification settings

fdmedia-io/clickwhale-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Useful Code Snippets for ClickWhale

This documentation provides a collection of useful code snippets for developers working with the ClickWhale WordPress plugin.

Available Hooks

Link clicked

Use this hook if you want to execute an action after a ClickWhale link has been clicked.

add_action('clickwhale/link_clicked', function( $link, $link_id, $user_id = 0 ) {
    // Do something
});

The hook provides information about the clicked link, the link ID and the user ID (if logged in).

Link Page: Header

Use this hook if you want to execute an action at the top of a ClickWhale link page.

add_action('clickwhale/link_page_head', function( $link_page, $link_page_id, $user_id = 0 ) {
    // Do something
});

The hook provides information about the viewed link page, the link page ID and the user ID (if logged in).

Plugin Documentation

More information about the plugin functionality can be found in the officia plugin documentation.

About

Collection of hooks that can be used to engage with certain actions of our plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published