PluginProbe
Orderable – Restaurant & Food Ordering System / 0.2.0
Orderable – Restaurant & Food Ordering System v0.2.0
0.1.4 0.1.5 0.2.0 1.0.0 1.1.0 1.1.1 1.10.0 1.10.1 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.14.0 1.15.0 1.16.0 1.17.0 1.17.1 1.18.0 1.19.0 1.19.1 1.19.2 1.2.0 1.20.0 1.20.1 All 44 releases
orderable / inc / class-orders.php

class-orders.php in Orderable – Restaurant & Food Ordering System 0.2.0, at inc/class-orders.php

32 lines 466 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Order methods.
4 *
5 * @package Orderable/Classes
6 */
7
8 defined( 'ABSPATH' ) || exit;
9
10 /**
11 * Orders class.
12 */
13 class Orderable_Orders {
14 /**
15 * Is orders page.
16 *
17 * @return bool
18 */
19 public static function is_orders_page() {
20 if ( ! is_admin() || ! function_exists( 'get_current_screen' ) ) {
21 return false;
22 }
23
24 $screen = get_current_screen();
25
26 if ( ! $screen || 'edit-shop_order' !== $screen->id ) {
27 return false;
28 }
29
30 return true;
31 }
32 }