WPComplete 2.9.5.8 has 16 actions and 15 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WPComplete fires an action
add_action( 'wpcomplete_show_button_failed', function( $arg1, $atts, $content, $tag ) {
// Your code runs here.
}, 10, 4 );
// Change a value WPComplete is about to use
add_filter( 'wp_list_pages_excludes', function( $exclude_array ) {
// Change $exclude_array here.
return $exclude_array;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Action that is fired when a complete-button should be displayed for a * logged-out user. */ do_action( 'wpcomplete_show_button_failed', 'guest', $atts, $content, $tag ); -
/** * Action that is fired when custom button CSS is generated while user is * logged out. By default, no CSS is output for guests, but this action allows * plugins to generate custom CSS or handle the case in a different way. */ do_action( 'wpcomplete_custom_styles_failed', 'guest' ); -
/** * Action that is fired when a course progress graph should be displayed for a * logged-out user. */ do_action( 'wpcomplete_show_progress_graph_failed', 'guest', $atts, $content, $tag ); -
/** * Action that is fired when a radial progress graph should be displayed for a * logged-out user. */ do_action( 'wpcomplete_show_progress_radial_graph_failed', 'guest', $atts, $content, $tag ); -
/** * Action that is fired when a course progress ratio should be displayed for a * logged-out user. */ do_action( 'wpcomplete_show_progress_ratio_failed', 'guest', $atts, $content, $tag ); -
/** * Filters the array of pages to exclude from the pages list. */ apply_filters( 'wp_list_pages_excludes', $exclude_array ); -
/** * Filter the shortcode attributes so other plugins can overwrite values or * dynamically add attributes. */ apply_filters( 'wpcomplete_button_attrs', $atts, $content, $tag ); -
/** * Filter the shortcode attributes so other plugins can overwrite values or * dynamically add attributes. */ apply_filters( 'wpcomplete_progress_percentage_attrs', $atts, $content, $tag ); -
/** * Filter the shortcode attributes so other plugins can overwrite values or * dynamically add attributes. */ apply_filters( 'wpcomplete_progress_ratio_attrs', $atts, $content, $tag ); -
/** * Action that is fired when a course progress bar should be displayed for a * logged-out user. */ do_action( 'wpcomplete_show_progress_failed', 'guest', $atts, $content, $tag ); -
apply_filters( "puc_request_info_result-{$this->slug}", $info, null ); -
apply_filters( 'wp_list_pages', $output, $r, $pages ); -
apply_filters( "puc_check_now-{$this->updateChecker->slug}", $shouldCheck, (!empty($state) && isset($state->lastCheck)) ? $state->lastCheck : 0, $this->checkPeriod ); -
apply_filters( "puc_manual_check_link-{$this->slug}", __('Check for updates', 'plugin-update-checker') ); -
apply_filters( "puc_manual_check_message-{$this->slug}", $message, $status ); -
apply_filters( "puc_pre_inject_info-{$this->slug}", $pluginInfo ); -
apply_filters( "puc_pre_inject_update-{$this->slug}", $update ); -
apply_filters( "puc_request_info_options-{$this->slug}", $options ); -
apply_filters( "puc_request_info_query_args-{$this->slug}", $queryArgs ); -
apply_filters( "puc_retain_fields-{$object->slug}", $fields ); -
apply_filters( "puc_retain_fields-{$this->slug}", $fields ); -
do_action( 'wpcomplete_button_completed', array( 'user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_button_uncompleted', array( 'user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_course_completed', array('user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_course_uncompleted', array('user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_mark_completed', array( 'user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_mark_incomplete', array('user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_page_completed', array('user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_page_uncompleted', array('user_id' => get_current_user_id(), 'post_id' => $post_id, 'button_id' => $unique_button_id, 'course' => $course ) ); -
do_action( 'wpcomplete_reset', array('user_id' => $user_id ) ); -
do_action( 'wpcomplete_reset_course', array('user_id' => $user_id, 'course' => $course ) );
Generated from WPComplete's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: