Thank you Brian! But I think my problem is not related to the theme but to Learnpress itself.
According to Thimpress developer guide (https://docs.thimpress.com/learnpress/developer-guide/) the hook ‘learn_press_course_payment_meta_box_args’ available in LP3 in inc/custom-post-types/course.php is in a folder that have skipped when upgraded to LP4.
What I’m trying to do is to add a checkbox to the course price (edit) page, so the question is which is the right hook to use en LP4? This code was working fine in LP3:
add_filter('learn_press_course_payment_meta_box_args', 'show_dollar_price_checkbox', 10, 1);
function show_dollar_price_checkbox($meta_box) {
$meta_box['fields'][] = array(
'name' => 'Show in dollars',
'type' => 'yes_no',
'desc' => 'Show price in dollars'),
'std' => 'no',
);
return $meta_box;
}
Thank you again!
-
This reply was modified 1 year ago by gulinma.