Zapier (BETA)

WPComplete 2.9+ integrates with Zapier’s “Webhooks by Zapier”. What is Zapier? Zapier is the glue that connects thousands of web apps. Zaps are workflows that connect your apps, so they can work together. Zaps start with a trigger—an event in one of your apps that kicks off your workflow. Zaps automate tasks in the background,…

Developer API (BETA)

WPComplete 2.9+ has a public API for developers who want to build off of our existing functionality right within their PHP/Wordpress code and templates. To do so, here are some functions that are available. Please note that we don’t offer advice or support on using our API, it’s presented as-is. That said, if there is…

WordPress query

If you want to loop through WPC completable pages using a WordPress query, you can. You just need to apply the filter of `wpcomplete_list_pages` to your query, like so: <?php // get an array of the wpc_list_pages in php so you can loop through them yourself. // uses the same attributes as the shortcode. //…

WordPress filters

New WordPress filters for programmers allow you to execute WP/PHP code when: if ( apply_filters( ‘wpcomplete_button_is_completed’, $post_id, $button_name ) ) { … } if ( apply_filters( ‘wpcomplete_page_is_completed’, $post_id ) ) { … } if ( apply_filters( ‘wpcomplete_course_is_completed’, $course_name ) ) { … } Note, these should only be used if you’re comfortable writing PHP and…

JQuery Events and Functions

Available Custom jQuery events: wpc-button-completed wpc-button-completed::post ID-Button Name wpc-page-completed wpc-page-completed::post ID wpc-course-completed wpc-course-completed::Course Name Examples: Want to trigger some javascript once the user completes a page? jQuery(document).on(‘wpc-page-completed’, function(e) { // do something awesome! }); Need something to happen when a specific page is completed? Use the post’s ID: jQuery(document).on(‘wpc-page-completed::430’, function(e) { // do something awesome!…