Skip to content

Instantly share code, notes, and snippets.

View jwahlin's full-sized avatar

Jamie Wahlin jwahlin

View GitHub Profile
@jwahlin
jwahlin / custom_progress_bar.php
Last active October 23, 2019 21:54
Combine Formidable stats with SKT Skillset shortcode
add_shortcode( 'custom_progress_bar', 'add_custom_progress_bar' );
function add_custom_progress_bar( $atts ) {
if (
! isset( $atts['user'] ) || ! isset( $atts['goal'] ) || ! isset( $atts['year_month'] )
|| ! isset( $atts['title'] ) || ! isset( $atts['goal_id'] )
) {
return '';
}
// Get total amount completed for the current month