Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.
<?php | |
// ADD NEW ADMIN USER TO WORDPRESS | |
// ---------------------------------- | |
// Put this file in your Wordpress root directory and run it from your browser. | |
$user = false; | |
$errors = array(); | |
if( isset( $_POST ) ){ |
function ld_next_lesson_link( $course_id = null ) { | |
global $post; | |
$user = _wp_get_current_user(); | |
if( is_null( $course_id ) ) { | |
$course_id = learndash_get_course_id( $post ); | |
} | |
if( !$course_id || !isset( $user->ID ) ) { | |
// User Not Logged In OR No Course Identified |
// http://www.gravityhelp.com/forums/topic/simple-calculations | |
// change the 41 here to your form ID | |
add_action('gform_pre_submission_41', 'ch_awesomeness_rating'); | |
function ch_awesomeness_rating($form) { | |
// set up one array for each step of the form | |
// each array contains the input IDs of the fields we want to sum on each page | |
// IDs do not need to be consecutive using this method | |
$step_groups = array( | |
38 => array( 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 ) , |
Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.