engine = AI_Explainer_Pro_Detection_Engine::get_instance(); } public function render() { $detection = null; $posted = ''; if ( isset( $_POST['aiep_detect_content'] ) && isset( $_POST['_wpnonce'] ) ) { $nonce = sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ); if ( wp_verify_nonce( $nonce, 'aiep_detect_content' ) ) { $posted = isset( $_POST['aiep_content'] ) ? sanitize_textarea_field( wp_unslash( $_POST['aiep_content'] ) ) : ''; if ( ! empty( $posted ) ) { $detection = $this->engine->detect( $posted ); } } } ?>