UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

29 lines (28 loc) • 654 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HooksCommand = void 0; class HooksCommand { static #idFilter = 0; static #idAction = 0; static createFilter() { return { id: `__command_LmnOp_filter_${this.#idFilter++}`, }; } static createNamedFilter(name) { return { id: name, }; } static createAction() { return { id: `__command_LmnOp_action_${this.#idAction++}`, }; } static createNamedAction(name) { return { id: name, }; } } exports.HooksCommand = HooksCommand;