hi , i want to insert this form
<form action="<?php echo get_permalink($course_id); ?>" method="post">
<input type="submit" name="review_course" class="review_course unit_button full button" value="<?php _e('REVIEW COURSE ', 'vibe'); ?>" />
<?php wp_nonce_field($course_id, 'review'); ?>
</form>
like in image http://prntscr.com/8y7lry
there is an hook to insert the code here ?
thanks
Add the given code in your wplms-customizer.php file in wplms customizer plugin :
if (!function_exists('vibe_course_button')) {
function vibe_course_button( $atts, $content = null ) {
extract(shortcode_atts(array(
'id' => ''
), $atts));
if(!is_numeric($id))
return;
ob_start();
if(!empty($id)){
the_course_button($id);
}else{
global $post;
the_course_button($post->ID);
}
$html = ob_get_clean();
return $html;
}
add_shortcode('course_button', 'vibe_course_button');
}
And then use the shortcode :
[course_button id="course_id "]