' . esc_html__( 'Please login to manage your invite codes.', 'all-in-one-invite-codes' ) . '
'; wp_login_form(); return ''; } // Add the js in the shortcode so we can use this more easy as Block in a later process. ?> get_current_user_id(), 'posts_per_page' => - 1, 'post_type' => 'tk_invite_codes', // you can use also 'any' ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { echo 'Code: '; echo esc_html( get_post_meta( get_the_ID(), 'tk_all_in_one_invite_code', true ) ) . ' ' . esc_html( $is_multiple_use ); echo '
Status: '; $status = all_in_one_invite_codes_get_status( get_the_ID() ); echo esc_html( $status ); echo '
Code: '; echo esc_html( get_post_meta( get_the_ID(), 'tk_all_in_one_invite_code', true ) ); echo '
Status: '; $status = all_in_one_invite_codes_get_status( get_the_ID() ); echo esc_html( $status ); echo '
' . esc_html__( 'Invite a Friend Now', 'all-in-one-invite-codes' ) . '
'; } else { echo esc_html__( 'Invite was sent to: ', 'all-in-one-invite-codes' ) . esc_html( $email ); } echo 'eMail:
Number:
Purpose: