??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/pgtankstorage.sg/wp-includes/js/dist/hooks.js
⬅ Kembali
"use strict";
var wp;
(wp ||= {}).hooks = (() => {
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// packages/hooks/build-module/index.mjs
var index_exports = {};
__export(index_exports, {
actions: () => actions,
addAction: () => addAction,
addFilter: () => addFilter,
applyFilters: () => applyFilters,
applyFiltersAsync: () => applyFiltersAsync,
createHooks: () => createHooks_default,
currentAction: () => currentAction,
currentFilter: () => currentFilter,
defaultHooks: () => defaultHooks,
didAction: () => didAction,
didFilter: () => didFilter,
doAction: () => doAction,
doActionAsync: () => doActionAsync,
doingAction: () => doingAction,
doingFilter: () => doingFilter,
filters: () => filters,
hasAction: () => hasAction,
hasFilter: () => hasFilter,
removeAction: () => removeAction,
removeAllActions: () => removeAllActions,
removeAllFilters: () => removeAllFilters,
removeFilter: () => removeFilter
});
// packages/hooks/build-module/validateNamespace.mjs
function validateNamespace(namespace) {
if ("string" !== typeof namespace || "" === namespace) {
console.error("The namespace must be a non-empty string.");
return false;
}
if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) {
console.error(
"The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."
);
return false;
}
return true;
}
var validateNamespace_default = validateNamespace;
// packages/hooks/build-module/validateHookName.mjs
function validateHookName(hookName) {
if ("string" !== typeof hookName || "" === hookName) {
console.error("The hook name must be a non-empty string.");
return false;
}
if (/^__/.test(hookName)) {
console.error("The hook name cannot begin with `__`.");
return false;
}
if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {
console.error(
"The hook name can only contain numbers, letters, dashes, periods and underscores."
);
return false;
}
return true;
}
var validateHookName_default = validateHookName;
// packages/hooks/build-module/createAddHook.mjs
function createAddHook(hooks, storeKey) {
return function addHook(hookName, namespace, callback, priority = 10) {
const hooksStore = hooks[storeKey];
if (!validateHookName_default(hookName)) {
return;
}
if (!validateNamespace_default(namespace)) {
return;
}
if ("function" !== typeof callback) {
console.error("The hook callback must be a function.");
return;
}
if ("number" !== typeof priority) {
console.error(
"If specified, the hook priority must be a number."
);
return;
}
const handler = { callback, priority, namespace };
if (hooksStore[hookName]) {
const handlers = hooksStore[hookName].handlers;
let i;
for (i = handlers.length; i > 0; i--) {
if (priority >= handlers[i - 1].priority) {
break;
}
}
if (i === handlers.length) {
handlers[i] = handler;
} else {
handlers.splice(i, 0, handler);
}
hooksStore.__current.forEach((hookInfo) => {
if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
hookInfo.currentIndex++;
}
});
} else {
hooksStore[hookName] = {
handlers: [handler],
runs: 0
};
}
if (hookName !== "hookAdded") {
hooks.doAction(
"hookAdded",
hookName,
namespace,
callback,
priority
);
}
};
}
var createAddHook_default = createAddHook;
// packages/hooks/build-module/createRemoveHook.mjs
function createRemoveHook(hooks, storeKey, removeAll = false) {
return function removeHook(hookName, namespace) {
const hooksStore = hooks[storeKey];
if (!validateHookName_default(hookName)) {
return;
}
if (!removeAll && !validateNamespace_default(namespace)) {
return;
}
if (!hooksStore[hookName]) {
return 0;
}
let handlersRemoved = 0;
if (removeAll) {
handlersRemoved = hooksStore[hookName].handlers.length;
hooksStore[hookName] = {
runs: hooksStore[hookName].runs,
handlers: []
};
} else {
const handlers = hooksStore[hookName].handlers;
for (let i = handlers.length - 1; i >= 0; i--) {
if (handlers[i].namespace === namespace) {
handlers.splice(i, 1);
handlersRemoved++;
hooksStore.__current.forEach((hookInfo) => {
if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
hookInfo.currentIndex--;
}
});
}
}
}
if (hookName !== "hookRemoved") {
hooks.doAction("hookRemoved", hookName, namespace);
}
return handlersRemoved;
};
}
var createRemoveHook_default = createRemoveHook;
// packages/hooks/build-module/createHasHook.mjs
function createHasHook(hooks, storeKey) {
return function hasHook(hookName, namespace) {
const hooksStore = hooks[storeKey];
if ("undefined" !== typeof namespace) {
return hookName in hooksStore && hooksStore[hookName].handlers.some(
(hook) => hook.namespace === namespace
);
}
return hookName in hooksStore;
};
}
var createHasHook_default = createHasHook;
// packages/hooks/build-module/createRunHook.mjs
function createRunHook(hooks, storeKey, returnFirstArg, async) {
return function runHook(hookName, ...args) {
const hooksStore = hooks[storeKey];
if (!hooksStore[hookName]) {
hooksStore[hookName] = {
handlers: [],
runs: 0
};
}
hooksStore[hookName].runs++;
const handlers = hooksStore[hookName].handlers;
if (true) {
if ("hookAdded" !== hookName && hooksStore.all) {
handlers.push(...hooksStore.all.handlers);
}
}
if (!handlers || !handlers.length) {
return returnFirstArg ? args[0] : void 0;
}
const hookInfo = {
name: hookName,
currentIndex: 0
};
async function asyncRunner() {
try {
hooksStore.__current.add(hookInfo);
let result = returnFirstArg ? args[0] : void 0;
while (hookInfo.currentIndex < handlers.length) {
const handler = handlers[hookInfo.currentIndex];
result = await handler.callback.apply(null, args);
if (returnFirstArg) {
args[0] = result;
}
hookInfo.currentIndex++;
}
return returnFirstArg ? result : void 0;
} finally {
hooksStore.__current.delete(hookInfo);
}
}
function syncRunner() {
try {
hooksStore.__current.add(hookInfo);
let result = returnFirstArg ? args[0] : void 0;
while (hookInfo.currentIndex < handlers.length) {
const handler = handlers[hookInfo.currentIndex];
result = handler.callback.apply(null, args);
if (returnFirstArg) {
args[0] = result;
}
hookInfo.currentIndex++;
}
return returnFirstArg ? result : void 0;
} finally {
hooksStore.__current.delete(hookInfo);
}
}
return (async ? asyncRunner : syncRunner)();
};
}
var createRunHook_default = createRunHook;
// packages/hooks/build-module/createCurrentHook.mjs
function createCurrentHook(hooks, storeKey) {
return function currentHook() {
const hooksStore = hooks[storeKey];
const currentArray = Array.from(hooksStore.__current);
return currentArray.at(-1)?.name ?? null;
};
}
var createCurrentHook_default = createCurrentHook;
// packages/hooks/build-module/createDoingHook.mjs
function createDoingHook(hooks, storeKey) {
return function doingHook(hookName) {
const hooksStore = hooks[storeKey];
if ("undefined" === typeof hookName) {
return hooksStore.__current.size > 0;
}
return Array.from(hooksStore.__current).some(
(hook) => hook.name === hookName
);
};
}
var createDoingHook_default = createDoingHook;
// packages/hooks/build-module/createDidHook.mjs
function createDidHook(hooks, storeKey) {
return function didHook(hookName) {
const hooksStore = hooks[storeKey];
if (!validateHookName_default(hookName)) {
return;
}
return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0;
};
}
var createDidHook_default = createDidHook;
// packages/hooks/build-module/createHooks.mjs
var _Hooks = class {
actions;
filters;
addAction;
addFilter;
removeAction;
removeFilter;
hasAction;
hasFilter;
removeAllActions;
removeAllFilters;
doAction;
doActionAsync;
applyFilters;
applyFiltersAsync;
currentAction;
currentFilter;
doingAction;
doingFilter;
didAction;
didFilter;
constructor() {
this.actions = /* @__PURE__ */ Object.create(null);
this.actions.__current = /* @__PURE__ */ new Set();
this.filters = /* @__PURE__ */ Object.create(null);
this.filters.__current = /* @__PURE__ */ new Set();
this.addAction = createAddHook_default(this, "actions");
this.addFilter = createAddHook_default(this, "filters");
this.removeAction = createRemoveHook_default(this, "actions");
this.removeFilter = createRemoveHook_default(this, "filters");
this.hasAction = createHasHook_default(this, "actions");
this.hasFilter = createHasHook_default(this, "filters");
this.removeAllActions = createRemoveHook_default(this, "actions", true);
this.removeAllFilters = createRemoveHook_default(this, "filters", true);
this.doAction = createRunHook_default(this, "actions", false, false);
this.doActionAsync = createRunHook_default(this, "actions", false, true);
this.applyFilters = createRunHook_default(this, "filters", true, false);
this.applyFiltersAsync = createRunHook_default(this, "filters", true, true);
this.currentAction = createCurrentHook_default(this, "actions");
this.currentFilter = createCurrentHook_default(this, "filters");
this.doingAction = createDoingHook_default(this, "actions");
this.doingFilter = createDoingHook_default(this, "filters");
this.didAction = createDidHook_default(this, "actions");
this.didFilter = createDidHook_default(this, "filters");
}
};
function createHooks() {
return new _Hooks();
}
var createHooks_default = createHooks;
// packages/hooks/build-module/index.mjs
var defaultHooks = createHooks_default();
var {
addAction,
addFilter,
removeAction,
removeFilter,
hasAction,
hasFilter,
removeAllActions,
removeAllFilters,
doAction,
doActionAsync,
applyFilters,
applyFiltersAsync,
currentAction,
currentFilter,
doingAction,
doingFilter,
didAction,
didFilter,
actions,
filters
} = defaultHooks;
return __toCommonJS(index_exports);
})();
Nama
Tipe
Ukuran
Diubah
Aksi
📁 development
dir
—
2025-05-16 13:14
📁 script-modules
dir
—
2026-05-21 01:19
📁 vendor
dir
—
2026-05-21 01:19
📜 a11y.js
js
5.5 KB
2026-05-21 01:19
📜 a11y.min.js
js
2.4 KB
2026-05-21 01:19
📜 annotations.js
js
15.1 KB
2026-05-21 01:19
📜 annotations.min.js
js
5.6 KB
2026-05-21 01:19
📜 api-fetch.js
js
17.5 KB
2026-05-21 01:19
📜 api-fetch.min.js
js
6.3 KB
2026-05-21 01:19
📜 autop.js
js
9.7 KB
2026-05-21 01:19
📜 autop.min.js
js
5.5 KB
2026-05-21 01:19
📜 base-styles.js
js
48 B
2026-05-21 01:19
📜 base-styles.min.js
js
40 B
2026-05-21 01:19
📜 blob.js
js
2.3 KB
2026-05-21 01:19
📜 blob.min.js
js
1.1 KB
2026-05-21 01:19
📜 block-directory.js
js
55.7 KB
2026-05-21 01:19
📜 block-directory.min.js
js
21.9 KB
2026-05-21 01:19
📜 block-editor.js
js
2.7 MB
2026-05-21 01:19
📜 block-editor.min.js
js
1 MB
2026-05-21 01:19
📜 block-library.js
js
2.6 MB
2026-05-21 01:19
📜 block-library.min.js
js
1.1 MB
2026-05-21 01:19
📜 block-serialization-default-parser.js
js
6.5 KB
2026-05-21 01:19
📜 block-serialization-default-parser.min.js
js
2.4 KB
2026-05-21 01:19
📜 block-serialization-spec-parser.js
js
50.5 KB
2026-05-21 01:19
📜 block-serialization-spec-parser.min.js
js
10.3 KB
2026-05-21 01:19
📜 blocks.js
js
381.1 KB
2026-05-21 01:19
📜 blocks.min.js
js
180.6 KB
2026-05-21 01:19
📜 commands.js
js
151.7 KB
2026-05-21 01:19
📜 commands.min.js
js
63.1 KB
2026-05-21 01:19
📜 components.js
js
3.8 MB
2026-05-21 01:19
📜 components.min.js
js
786.2 KB
2026-05-21 01:19
📜 compose.js
js
80.8 KB
2026-05-21 01:19
📜 compose.min.js
js
28.2 KB
2026-05-21 01:19
📜 core-commands.js
js
28.7 KB
2026-05-21 01:19
📜 core-commands.min.js
js
11.8 KB
2026-05-21 01:19
📜 core-data.js
js
612 KB
2026-05-21 01:19
📜 core-data.min.js
js
210.4 KB
2026-05-21 01:19
📜 customize-widgets.js
js
91.6 KB
2026-05-21 01:19
📜 customize-widgets.min.js
js
36.6 KB
2026-05-21 01:19
📜 data-controls.js
js
4.1 KB
2026-05-21 01:19
📜 data-controls.min.js
js
1.7 KB
2026-05-21 01:19
📜 data.js
js
82.8 KB
2026-05-21 01:19
📜 data.min.js
js
25.9 KB
2026-05-21 01:19
📜 date.js
js
176.3 KB
2026-05-21 01:19
📜 date.min.js
js
141.2 KB
2026-05-21 01:19
📜 deprecated.js
js
3 KB
2026-05-21 01:19
📜 deprecated.min.js
js
1.3 KB
2026-05-21 01:19
📜 dom-ready.js
js
1.5 KB
2026-05-21 01:19
📜 dom-ready.min.js
js
783 B
2026-05-21 01:19
📜 dom.js
js
34.6 KB
2026-05-21 01:19
📜 dom.min.js
js
12.6 KB
2026-05-21 01:19
📜 edit-post.js
js
117.4 KB
2026-05-21 01:19
📜 edit-post.min.js
js
49.1 KB
2026-05-21 01:19
📜 edit-site.js
js
1.7 MB
2026-05-21 01:19
📜 edit-site.min.js
js
684.4 KB
2026-05-21 01:19
📜 edit-widgets.js
js
160.2 KB
2026-05-21 01:19
📜 edit-widgets.min.js
js
61.8 KB
2026-05-21 01:19
📜 editor.js
js
2.5 MB
2026-05-21 01:19
📜 editor.min.js
js
1021.2 KB
2026-05-21 01:19
📜 element.js
js
27.9 KB
2026-05-21 01:19
📜 element.min.js
js
12.1 KB
2026-05-21 01:19
📜 escape-html.js
js
2.3 KB
2026-05-21 01:19
📜 escape-html.min.js
js
1 KB
2026-05-21 01:19
📜 format-library.js
js
73.3 KB
2026-05-21 01:19
📜 format-library.min.js
js
28.8 KB
2026-05-21 01:19
📜 hooks.js
js
12 KB
2026-05-21 01:19
📜 hooks.min.js
js
4.9 KB
2026-05-21 01:19
📜 html-entities.js
js
1.6 KB
2026-05-21 01:19
📜 html-entities.min.js
js
844 B
2026-05-21 01:19
📜 i18n.js
js
15.3 KB
2026-05-21 01:19
📜 i18n.min.js
js
5.6 KB
2026-05-21 01:19
📜 is-shallow-equal.js
js
2.7 KB
2026-05-21 01:19
📜 is-shallow-equal.min.js
js
1.1 KB
2026-05-21 01:19
📜 keyboard-shortcuts.js
js
9.7 KB
2026-05-21 01:19
📜 keyboard-shortcuts.min.js
js
3.4 KB
2026-05-21 01:19
📜 keycodes.js
js
8.3 KB
2026-05-21 01:19
📜 keycodes.min.js
js
2.9 KB
2026-05-21 01:19
📜 list-reusable-blocks.js
js
13.1 KB
2026-05-21 01:19
📜 list-reusable-blocks.min.js
js
5.2 KB
2026-05-21 01:19
📜 media-utils.js
js
637.1 KB
2026-05-21 01:19
📜 media-utils.min.js
js
237.6 KB
2026-05-21 01:19
📜 notices.js
js
10.1 KB
2026-05-21 01:19
📜 notices.min.js
js
4.3 KB
2026-05-21 01:19
📜 nux.js
js
10.3 KB
2026-05-21 01:19
📜 nux.min.js
js
3.9 KB
2026-05-21 01:19
📜 patterns.js
js
58.2 KB
2026-05-21 01:19
📜 patterns.min.js
js
21.6 KB
2026-05-21 01:19
📜 plugins.js
js
11.7 KB
2026-05-21 01:19
📜 plugins.min.js
js
4.7 KB
2026-05-21 01:19
📜 preferences-persistence.js
js
17.2 KB
2026-05-21 01:19
📜 preferences-persistence.min.js
js
5.5 KB
2026-05-21 01:19
📜 preferences.js
js
21.1 KB
2026-05-21 01:19
📜 preferences.min.js
js
7.7 KB
2026-05-21 01:19
📜 primitives.js
js
5.1 KB
2026-05-21 01:19
📜 primitives.min.js
js
1.9 KB
2026-05-21 01:19
📜 priority-queue.js
js
10 KB
2026-05-21 01:19
📜 priority-queue.min.js
js
3.3 KB
2026-05-21 01:19
📜 private-apis.js
js
4.1 KB
2026-05-21 01:19
📜 private-apis.min.js
js
2.6 KB
2026-05-21 01:19
📜 react-i18n.js
js
3.9 KB
2026-05-21 01:19
📜 react-i18n.min.js
js
1.5 KB
2026-05-21 01:19
📜 redux-routine.js
js
24.7 KB
2026-05-21 01:19
📜 redux-routine.min.js
js
9.6 KB
2026-05-21 01:19
📜 reusable-blocks.js
js
20.5 KB
2026-05-21 01:19
📜 reusable-blocks.min.js
js
7.2 KB
2026-05-21 01:19
📜 rich-text.js
js
97 KB
2026-05-21 01:19
📜 rich-text.min.js
js
39.9 KB
2026-05-21 01:19
📜 router.js
js
36.1 KB
2026-05-21 01:19
📜 router.min.js
js
14.1 KB
2026-05-21 01:19
📜 server-side-render.js
js
11 KB
2026-05-21 01:19
📜 server-side-render.min.js
js
3.9 KB
2026-05-21 01:19
📜 shortcode.js
js
8 KB
2026-05-21 01:19
📜 shortcode.min.js
js
3.2 KB
2026-05-21 01:19
📜 style-engine.js
js
17.6 KB
2026-05-21 01:19
📜 style-engine.min.js
js
6.4 KB
2026-05-21 01:19
📜 sync.js
js
359.4 KB
2026-05-21 01:19
📜 sync.min.js
js
118.1 KB
2026-05-21 01:19
📜 theme.js
js
127.6 KB
2026-05-21 01:19
📜 theme.min.js
js
56.1 KB
2026-05-21 01:19
📜 token-list.js
js
6.1 KB
2026-05-21 01:19
📜 token-list.min.js
js
1.6 KB
2026-05-21 01:19
📜 undo-manager.js
js
5.3 KB
2026-05-21 01:19
📜 undo-manager.min.js
js
1.7 KB
2026-05-21 01:19
📜 upload-media.js
js
55.7 KB
2026-05-21 01:19
📜 upload-media.min.js
js
23 KB
2026-05-21 01:19
📜 url.js
js
23.4 KB
2026-05-21 01:19
📜 url.min.js
js
10.1 KB
2026-05-21 01:19
📜 viewport.js
js
6.6 KB
2026-05-21 01:19
📜 viewport.min.js
js
2.2 KB
2026-05-21 01:19
📜 warning.js
js
1.5 KB
2026-05-21 01:19
📜 warning.min.js
js
720 B
2026-05-21 01:19
📜 widgets.js
js
50.1 KB
2026-05-21 01:19
📜 widgets.min.js
js
20.8 KB
2026-05-21 01:19
📜 wordcount.js
js
6.9 KB
2026-05-21 01:19
📜 wordcount.min.js
js
2.4 KB
2026-05-21 01:19