I want to create condition If for dynamic button When Status WooCommerce is changed.
Example:
if ( bp_is_my_profile() ) { the_course_button($course_post_id); } else { bp_course_credits(); } $PriceAc = bp_course_credits(); if ( $PriceAc == 'start %s course' ) { // DO SOMETHING } else if ( $PriceAc == 'FINISHED %s COURSE' ) { // DO SOME OTHER THING } else { // DO SOMETHING ELSE }
I use Wplms theme.
1.4m articles
1.4m replys
5 comments
56.9k users