Descripción
WPeMatico Custom Hooks puts WPeMatico’s developer API on a screen you can actually work in, and it is completely free.
Sooner or later every autoblog needs a rule that no settings page covers: strip a particular block out of the source content, rename images before they are downloaded, skip items that mention a certain word, decide a category from the feed itself, rewrite a title before it is published. WPeMatico fires dozens of hooks for exactly that purpose. This addon lists every one of them for you, each with a description of what it does, the parameters it receives, and a ready made function template.
No FTP. No child theme. No snippet buried in a functions.php that the next theme update will wipe. You write the function in a proper code editor, the plugin validates it before it is ever stored, and it runs on your next campaign.
Cómo funciona
- Pick a hook. Each entry tells you what it does, whether it is an action or a filter, and which parameters it receives.
- Let the template be written for you. One click drops a correctly formed function into the editor, already carrying the right name, signature and return value for that hook.
- Write your code. On save it is parsed on the spot, and if anything is wrong you get the exact line and reason before a single character is stored.
- Done. It runs from your next campaign onwards.
The catalogue is not limited to the core. The addon detects which WPeMatico extensions you have active and adds their hooks to the list too, so Professional, Full Content, Polyglot and the rest are covered as well.
Features
- Over 90 hooks catalogued, from WPeMatico core and its extensions, each explained in plain language.
- Function templates generated for you, with the correct name, parameters and return value already in place.
- A real code editor, with PHP syntax highlighting and selectable colour schemes.
- Validated before saving. Your code is parsed in place and is never stored with a syntax error.
- Conflict detection, so two hooks can never end up declaring the same function name.
- Clear reporting. If something cannot run, you are told which hook and why, with a link straight to it.
- Extension aware. Hooks appear automatically when their extension is active, and the code you wrote for an extension is preserved while it is not.
- Administrators only. Reaching or saving anything here requires permission to edit plugins or themes.
Requisitos
This WPeMatico addon requires the WPeMatico base plugin to be installed and activated.
PHP 7.0 or higher.
Instalación
Puedes instalarlo automáticamente desde el administrador de WordPress, o hacerlo manualmente:
Descomprime el archivo del plugin y coloca la carpeta en su carpeta de plugins (/wp-content/plugins/).
Activa el plugin desde el menú Extensiones de WPeMatico.
1) Descomprímalo en la carpeta de plugins de WordPress para continuar con la activación. Primero debe tener instalado WPeMatico.
2) Una vez instalado, ve al menú WPeMatico – > Configuración
Luego, haz clic en la pestaña ‘Hooks’ para ir a la página principal del addon
FAQ
-
¿Puedo usar este complemento sin el plugin WPeMatico?
-
No. El addon requiere que WPeMatico Free Version esté instalado y activado.
Reseñas
Colaboradores & Desarrolladores
“WPeMatico Custom Hooks” es software de código abierto. Las siguientes personas han contribuido a este plugin.
Colaboradores“WPeMatico Custom Hooks” ha sido traducido en 4 idiomas. Gracias a los traductores por sus contribuciones.
Traduce “WPeMatico Custom Hooks” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .
Historial de cambios
1.3 Aug 22, 2026
A major release. The plugin has been reviewed from top to bottom, modernized and made considerably more robust, so that writing your own PHP against WPeMatico is safe and predictable on any hosting.
- Instant, local syntax checking. Your code is now parsed in place the moment you save, and any mistake is reported with its exact line and reason. The check no longer needs your server to be able to reach itself over HTTP, so it works reliably on every host, including managed and firewalled ones.
- Conflict detection while you write. If two hooks would declare a function with the same name, or the name is already taken elsewhere in WordPress, you are told immediately and pointed at the hook that already uses it.
- Fault tolerant execution. Should any snippet be unable to run, the plugin now reports it in the admin with a clear explanation and a direct link to edit it, while the rest of your hooks keep working normally.
- Your code stays where you put it. Snippets are now bound to their hook by name, so installing, activating or deactivating WPeMatico extensions never shuffles them. Code written for an extension that is currently inactive is preserved instead of being lost.
- Smarter function detection. The functions attached to each hook are read from your code itself, so indented, multiple and by-reference declarations are always recognized.
- Lighter on every page load. Editor assets are now loaded only on the Hooks screen, and the work done on regular requests has been cut down substantially.
- Reviewed hooks catalogue, verified against the current WPeMatico core and its extensions, including hook names and parameter signatures, so every hook offered behaves exactly as described.
- Modernized and hardened codebase for current PHP and WordPress versions: stricter capability and input handling on the editor, cleaner translation loading, and no temporary PHP files written to disk.
1.2 Apr 29, 2021
- Added new filters of WPeMatico and many of its extensions.
- Fixes codemirror for rich text code.
- Introducing Filters groups to find them easier.
- Improved many help tips on filter selection.
- Bump WordPress version to 5.7.1
1.1.3 Aug 21, 2019
- Mejora de la pantalla Ajustes->Ganchos. Ahora todo es más intuitivo.
- Oculta todas las áreas de texto sin códigos o filtros.
- Actualizadas todas las traducciones al español.
1.1.2 Oct 19, 2018
- Añadido filtro de funciones wpematico_addcat_description filter para cambiar las descripciones de las categorías automáticas.
- Añadido filtro de funciones Add filter wpematico_get_item_images.
- Corrección de los parámetros de función usando “$this->”.
- Corrige un problema en los filtros de acción.
- Se corrige una advertencia en el área de código en el uso del tabulador para sangría.
1.1.1 Feb 27, 2018
- Añadido filtro wpematico_imagen_src en wpematico 1.9.1
1.1 Jan 31, 2018
- Añadido resaltado de código con la librería CodeMirror incluida en WordPress desde la versión 4.9.
- Corregido un error cuando WPeMatico guarda una imagen desde una campaña en ejecución.
1.0.2 Sep 4, 2017
- Corregido el dominio de texto del plugin en wpematico-custom-hooks.
- Añadidos Ajustes y enlaces auxiliares en la fila de Plugins.
- Añadido en el Repositorio de WordPress.
1.0.1 Aug 27, 2017
- Ajustes de JavaScript y estilos sólo se cargan en la página de configuración del plugin.
- Ajustes para limitar, guardar y verificar la sintaxis del código sólo para roles de usuario con capacidades edit_plugins o edit_themes.
- Ajustes para desinfectar y escapar de los campos y variables del formulario para imprimir o guardar.
- Ajustes para JavaScript y estilos impresos en el php, ahora tienen sus propios archivos .js y.css.
- Arreglos en los ganchos no ejecutados cuando se ejecuta manualmente una campaña en WPeMatico.
- Corrige la comprobación de errores de sintaxis para evitar la ejecución de código en el proceso.
- Correcciones para evitar accesos directos a los archivos.
- Se han eliminado comentarios y ejemplos inútiles.
1.0
- lanzamiento inicial




