Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altuno/f07f881194cb6083bb1c0f72f3abf746 to your computer and use it in GitHub Desktop.
Save altuno/f07f881194cb6083bb1c0f72f3abf746 to your computer and use it in GitHub Desktop.
function tw_change_access_message( $original_text, $ticket, $ticket_price, $ticket_status ) {
return sprintf(
'Prix de membre | Member price: %3$s. <br /><br /><a href="/fr/login/">Se connecter</a> | <a href="/login/">Login</a><br /><br /><a href="/fr/devenir-membre/">Devenez membre</a> | <a href="/become-a-member/">Become a member</a>',
'<strong>',
$ticket->name(),
$ticket->price(),
'</strong>',
$ticket_status
);
}
add_filter('FHEE__EED_WP_Users_Ticket_Selector__maybe_restrict_ticket_option_by_cap__no_access_msg', 'tw_change_access_message', 10, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment