$variable) { $conditions[$key] = $variable['label']; } return $conditions; } public static function getOperators(): array { $operators = array( 'equals' => '=', 'not_equals' => '!=', 'less_than' => '<', 'greater_than' => '>', 'less_than_or_equal' => '<=', 'greater_than_or_equal' => '>=', 'between' => 'is between', 'not_between' => 'is not between', 'in' => 'in', 'not_in' => 'is not in', 'contains' => 'contains', 'not_contains' => 'does not contain', ); /** * Filter workflow condition operators. * * @param array $operators Operator slug => label. */ $operators = apply_filters( 'afromewo_workflow_operators', $operators ); return is_array( $operators ) ? $operators : array(); } }