Get details about the member's card on file
public get_card_details ( ) : string | ||
Результат | string |
<?php $member = new RCP_Member(get_current_user_id()); ?> <form id="rcp_update_card_form" class="rcp_form" action="" method="POST"> <?php $cards = $member->get_card_details(); ?> <?php if (!empty($cards)) { ?> <h3><?php _e('Your Cards', 'rcp'); ?> </h3> <?php foreach ($cards as $card) { ?> <fieldset class="rcp_current_cards_fieldset"> <p> <span class="rcp_card_details_name"><?php _e('Name:', 'rcp'); ?> <?php echo $card['name']; ?> </span> <span class="rcp_card_details_type"><?php _e('Type:', 'rcp');