PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.3.4
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.3.4
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / includes / Admin / Helpers / Utility.php

Utility.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.3.4, at includes/Admin/Helpers/Utility.php

22 lines 532 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace EasyInvoice\Admin\Helpers;
4
5 use EasyInvoice\Constants\PagesSlugs;
6
7 function easy_invoice_is_valid_page($page) {
8 $valid_pages = [
9 PagesSlugs::INVOICE_NEW,
10 PagesSlugs::INVOICE_ID,
11 PagesSlugs::DASHBOARD,
12 PagesSlugs::ALL_INVOICES,
13 PagesSlugs::CLIENTS,
14 PagesSlugs::CLIENT_EDIT,
15 PagesSlugs::CLIENT_VIEW,
16 PagesSlugs::SETTINGS,
17 PagesSlugs::REPORTS,
18 PagesSlugs::INVOICE_PREVIEW,
19 ];
20
21 return in_array($page, $valid_pages, true);
22 }