AppThemes Hooks

Below you will find a listing of all our hooks. These enable developers to extend our products correctly by “hooking” onto a section instead of changing the source code.

Note: Vantage 4.0+ no longer uses these hooks. Instead, it has it’s own set of hooks prefixed with va_. Documentation has yet to be added. Do a global search in your code editor for ( 'va_ to locate them all.

Admin Hooks - (2)

appthemes_add_submenu_page_content
This action hook is triggered within the WordPress admin theme option pages.
appthemes_add_submenu_page
The appthemes_add_submenu_page action hook is triggered within the WordPress admin theme option pages.

Comments Hooks - (10)

appthemes_before_respond
This function executes in the comments-[post_type].php file and loads before the...
appthemes_after_pings
This function executes in the comments-[post_type].php file and loads after the ...
appthemes_list_pings
This function executes in the comments-[post_type].php file and loads the pingback/trackback function call.
appthemes_before_pings
This function executes in the comments-[post_type].php file and loads before the...
appthemes_after_comments
This function executes in the comments-[post_type].php file and loads after the ...
appthemes_comment
This function executes in the comments-[post_type].php file and loads in the cus...
appthemes_list_comments
This function executes in the comments-[post_type].php file and loads in the custom post type comments.
appthemes_before_comments
This function executes in the comments-[post_type].php file and runs before the ...
appthemes_after_comments_form
This function executes in the comments-[post_type].php file and loads after the ...
appthemes_comments_form
This function executes in the comments-[post_type].php file and loads the custom post type comments respond form.

Custom Post Type Hooks - (3)

cp_action_gateway
This function executes in gateways/gateway.php to process the payment. To learn more about processing payments in ClassiPress, read this tutorial. Usage This hook provides the order values to process as the first and only argument.
cp_action_payment_method
This function executes in forms/step2.php to allow gateways to hook into the pay...
cp_action_gateway_values
This function executes in gateways/admin-gateway-values.php to allow gateways to hook into the admin gateway options. To learn more about processing payments in ClassiPress, read this tutorial. Usage Your code should modify the global array $action_gateway_values;.

appthemes_footer
This function executes in the footer.php file after the WordPress footer hook wp_footer() and loads the entire theme footer code.
appthemes_after_footer
This function executes in the footer.php file and loads after the WordPress foot...
appthemes_before_footer
This function executes in the footer.php file and loads before the WordPress foo...

Header Hooks - (3)

appthemes_after_header
Runs in the header.php file and loads after the theme header code. Usage This hook provides no parameters.
appthemes_header
Runs in the header.php and loads in the theme header code found in /includes/theme-header.php.
appthemes_before_header
Runs in the header.php after the opening div tag and before the main header section is called at the top of the theme.

Init Hooks - (5)

appthemes_init
appthemes_after

Description

Runs in the footer.php before the closing html body tag and after all divs.
appthemes_before

Description

Runs in the header after the opening html body tag and before any divs.
appthemes_meta

Description

Runs in the html head where the meta tags are located.
appthemes_init
This hook runs after all theme files have been included, but before anything else is loaded into the theme.

Posts/Pages Hooks - (10)

appthemes_after_loop
This function executes in the loop-[post_type].php file and runs after the custo...
appthemes_loop_else
This action hook executes in the loop-[post_type].php file and loads within the ...
appthemes_after_endwhile
This action hook executes in the loop-[post_type].php file and loads within the ...
appthemes_after_post
This action hook executes in the loop-[post_type].php file and loads at the end ...
appthemes_after_post_content
This action hook executes in the loop-[post_type].php file and loads right after...
appthemes_before_post_content
This action hook executes in the loop-[post_type].php file and loads right before the_content() is run.
appthemes_after_post_title
Runs in the loop-[post_type].php and loads after the custom post type title (usually in an h1 or h2 tag) is displayed on the page.
appthemes_before_post_title
Runs in the loop-[post_type].php and loads before the custom post type title is displayed on the page.
appthemes_before_post
Executes in the loop-[post_type].php file and runs after have_posts() within the loop whenever any custom post type content is loaded.
appthemes_before_loop
Runs in the loop-[post_type].php file and runs before the have_posts() loop whenever any custom post type content (i.e.

appthemes_after_sidebar_widgets
This function executes in the sidebar files (sidebar.php, sidebar-user.php, sidebar-blog.php, etc) and loads after the dynamic sidebar code. appthemes_after_sidebar_widgets(); Example: Twitter Widget You can add a Twitter Widget or link to your Twitter using this hook.
appthemes_before_sidebar_widgets
This function executes in the sidebar files (sidebar.php, sidebar-user.php, sidebar-blog.php, etc) and loads before the dynamic sidebar code. appthemes_before_sidebar_widgets(); Example: Twitter Widget You can add a Twitter Widget or link to your Twitter using this hook.