get_products(); $type = ''; if (isset($_GET['step_id'])) { $step_id = sanitize_text_field( $_GET['step_id'] ); $type = get_post_meta( $step_id, '_step_type', true ); } ?>