Skip to content

Instantly share code, notes, and snippets.

// ----------------boton estado del curso despues de comprar
add_action('wplms_expired_course_button','check_order_please',10,2);
add_action('wplms_take_course_button_html','check_order_please',10,2);
function check_order_please($html,$course_id){
if(!is_user_logged_in())
return $html;
$bought = false;
$status = '';