Use filters for Enroll now button

To change a caption of the Enroll now button adds the code below to the themes/shelly/function.php.

function filter_enroll_caption( $string ) {
// Modify $string in some way.
return "Your button text here";
}
add_filter( 'shelly-enroll-caption', 'filter_enroll_caption' );

To change URL of the Enroll now button adds the code below to the themes/shelly/function.php.

function shelly_enroll_url( $string ) {
// Modify $string in some way.
return "https://...";
}
add_filter( 'shelly-enroll-url', 'shelly_enroll_url' );

Was this article helpful to you?