*/ private static function with_clause( $existing ): array { $clause = array( 'key' => self::META, 'compare' => 'EXISTS', ); return is_array( $existing ) && $existing ? array( 'relation' => 'AND', $existing, $clause ) : array( $clause ); } /** * The dropdown. */ private static function select(): void { if ( ! current_user_can( 'edit_shop_orders' ) ) { return; } $on = self::active(); echo ''; echo ''; } }