roles ) ) { $check = true; } if( $check ){ $order_id = ""; if( isset($_GET["woo_order"]) ) { $order_id = sanitize_text_field( $_GET['woo_order'] ); } $data_send_settings = array( "id_template"=> $id_template, "type"=> $type, "woo_order_id" =>$order_id, "name" => $name ); Yeepdf_Create_PDF::pdf_creator_preview($data_send_settings); } }