Callback Functions

Each JavaScript callback function is dispatched directly from Post Explorer. To utilize the following callback functions simply copy and paste a code example below into your sites JavaScript file.


Complete

wppe_complete() is dispatched after every successful Post Explorer load event.

Note: A state variable is sent with every update and contains the post ID, title and permalink of the current post.


Error

wppe_error() is dispatched when Post Explorer encounters and error loading content.


Scroll Complete

wppe_scroll_complete() is dispatched after Post Explorer has completed the scroll to post event (if applicable).


URL Update

wppe_url_update() is dispatched when Post Explorer updates the browser URL.

Note: A state variable is sent with every update and contains the post ID, title and permalink of the current post..