{"id":29628,"date":"2022-12-03T08:51:23","date_gmt":"2022-12-03T07:51:23","guid":{"rendered":"https:\/\/woosimon.com\/?p=29628"},"modified":"2022-12-03T08:51:24","modified_gmt":"2022-12-03T07:51:24","slug":"what-are-wordpress-filter-action-hooks","status":"publish","type":"post","link":"https:\/\/woosimon.com\/es\/what-are-wordpress-filter-action-hooks\/","title":{"rendered":"\u00bfQu\u00e9 son los filtros de WordPress y los ganchos de acci\u00f3n?"},"content":{"rendered":"<p>Si tiene un sitio web de WordPress, es probable que haya o\u00eddo hablar de los ganchos de filtro. \u00bfPero qu\u00e9 son exactamente? En esta publicaci\u00f3n, analizar\u00e9 qu\u00e9 son los ganchos de filtro, c\u00f3mo funcionan y c\u00f3mo usarlos en su propio c\u00f3digo.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-530b6dfa\"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTabla de contenidos\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap\">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#why-use-wordpress-filter-hooks\" class=\"uagb-toc-link__trigger\">\u00bfPor qu\u00e9 usar ganchos de filtro de WordPress?<\/a><li class=\"uagb-toc__list\"><a href=\"#adding-wordpress-filter-hooks-with-a-child-theme\" class=\"uagb-toc-link__trigger\">Agregar ganchos de filtro de WordPress con un tema secundario<\/a><li class=\"uagb-toc__list\"><a href=\"#adding-wordpress-filter-hooks-with-a-plugin\" class=\"uagb-toc-link__trigger\">Agregar ganchos de filtro de WordPress con un complemento<\/a><li class=\"uagb-toc__list\"><a href=\"#an-example-wordpress-filter-hook\" class=\"uagb-toc-link__trigger\">Un ejemplo de gancho de filtro de WordPress<\/a><li class=\"uagb-toc__list\"><a href=\"#conclusion\" class=\"uagb-toc-link__trigger\">Conclusi\u00f3n<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfPor qu\u00e9 usar ganchos de filtro de WordPress?<\/h2>\n\n\n\n<p>Los ganchos de filtro son una excelente manera de modificar el contenido de WordPress sin usar un complemento o tener que editar ning\u00fan archivo principal. Mediante el uso de ganchos de filtro, puede realizar cambios en el comportamiento de WordPress sin piratear el c\u00f3digo principal. Esto es extremadamente \u00fatil si planea crear un sitio personalizado o si desea poder actualizar su versi\u00f3n o tema de WordPress sin perder sus personalizaciones.<br><br>Hay dos tipos de ganchos de filtro: acciones y filtros. Las acciones le permiten insertar c\u00f3digo en puntos espec\u00edficos del c\u00f3digo de WordPress, mientras que los filtros le permiten modificar el contenido existente.<br><br>Por ejemplo, suponga que desea agregar un enlace &quot;leer m\u00e1s&quot; al final de cada extracto de la publicaci\u00f3n. Puede hacer esto conectando el filtro &#039;the_excerpt&#039; y agregando su enlace al final del extracto.<br><br>O supongamos que desea mostrar una barra lateral diferente en ciertas p\u00e1ginas de su sitio. Puede hacer esto conectando la acci\u00f3n &#039;sidebars_widgets&#039; y especificando qu\u00e9 barra lateral desea mostrar en qu\u00e9 p\u00e1gina.<br><br>Como puede ver, los ganchos de filtro le dan mucho poder sobre c\u00f3mo funciona WordPress. Si es un desarrollador, es esencial aprender a usar los ganchos de filtro. E incluso si no es un desarrollador, comprender c\u00f3mo funcionan los enlaces de filtro puede ser \u00fatil para ajustar el aspecto y el comportamiento de su sitio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Agregar ganchos de filtro de WordPress con un tema secundario<\/h2>\n\n\n\n<p>Los ganchos de filtro se pueden agregar directamente en el editor de archivos de su tema. Sin embargo, esto no es aconsejable, ya que si actualiza su tema y cuando lo haga, se perder\u00e1n los cambios que haya realizado.<br><br>Por esta raz\u00f3n, se recomienda instalar un &quot;Tema infantil&quot;. Un tema secundario se suma a su tema principal, lo que le permite realizar cambios que no se sobrescribir\u00e1n cuando se actualice su tema principal.<br><br><a href=\"https:\/\/woosimon.com\/es\/how-to-create-a-wordpress-child-theme\/\">Si no est\u00e1 seguro de qu\u00e9 es un tema infantil o c\u00f3mo crear uno, consulte mi gu\u00eda sobre c\u00f3mo crear un tema infantil de WordPress<\/a>.<br><br>Una vez instalado y activado, puede agregar sus ganchos de filtro en el archivo functions.php de su tema secundario yendo a <strong>Apariencia &gt; Editor de archivos de temas<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Agregar ganchos de filtro de WordPress con un complemento<\/h2>\n\n\n\n<p>Si est\u00e1 menos familiarizado con el c\u00f3digo, usar un complemento de fragmento de c\u00f3digo personalizado puede ser una opci\u00f3n menos desalentadora.<br><br>personalmente me gusta <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/insert-headers-and-footers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Complemento de fragmento de c\u00f3digo personalizado de WP Code<\/a>. Es gratis de instalar desde el repositorio de WordPress y f\u00e1cil de usar, aunque hay muchas alternativas. <a href=\"https:\/\/woosimon.com\/es\/a-quick-guide-to-choosing-wordpress-plugins\/\">Vea mi gu\u00eda para elegir los mejores complementos de WordPress aqu\u00ed.<br><\/a><br>Usar un complemento para agregar c\u00f3digo significa que:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>No tienes que crear e instalar un tema hijo<\/li>\n\n\n\n<li>Es muy f\u00e1cil activar y desactivar los filtros con solo hacer clic en un bot\u00f3n.<\/li>\n\n\n\n<li>Muchos complementos, como WPCode, tienen fragmentos listos para usar que puede activar para tareas comunes<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Un ejemplo de gancho de filtro de WordPress<\/h2>\n\n\n\n<p>El siguiente ejemplo muestra c\u00f3mo puede agregar una funci\u00f3n personalizada que reemplazar\u00e1 el saludo predeterminado &quot;Hola&quot; en la barra de administraci\u00f3n de WordPress con &quot;Hola&quot;:<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-0-color has-ast-global-color-8-background-color has-text-color has-background\"><code>\n\/\/ Cambiar el saludo de WordPress a la funci\u00f3n Hola replace_howdy( $wp_admin_bar ) { $my_account=$wp_admin_bar-&gt;get_node(&#039;my-account&#039;); $nuevotitulo = str_replace(&#039;Hola,&#039;, &#039;Hola,&#039;, $mi_cuenta-&gt;titulo); $wp_admin_bar-&gt;add_node( array( &#039;id&#039; =&gt; &#039;mi-cuenta&#039;, &#039;titulo&#039; =&gt; $nuevotitulo, ) ); } add_filter(&#039;admin_bar_menu&#039;, &#039;replace_howdy&#039;,25 );\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusi\u00f3n<\/h2>\n\n\n\n<p>Los ganchos de filtro de WordPress son una de las caracter\u00edsticas m\u00e1s poderosas de la plataforma de WordPress. Permiten a los desarrolladores &quot;engancharse&quot; al c\u00f3digo central de WordPress y realizar cambios o agregar funcionalidades sin cambiar nada del c\u00f3digo original.<br><br>Los ganchos de filtro se pueden usar para alterar el comportamiento de front-end y back-end en WordPress. Por ejemplo, un desarrollador podr\u00eda usar un gancho de filtro para alterar la forma en que se muestran los t\u00edtulos de las publicaciones en el front-end de un sitio de WordPress, o para agregar contenido adicional al final de cada publicaci\u00f3n.<br><br>Los \u00edconos para compartir, el formulario de suscripci\u00f3n al bolet\u00edn y \u201cEl art\u00edculo \u00bfQu\u00e9 son los filtros de WordPress y los ganchos de acci\u00f3n? apareci\u00f3 por primera vez en\u00a0<a href=\"https:\/\/woosimon.com\/es\/\">woosimon.com<\/a>El texto que puede ver a continuaci\u00f3n se agreg\u00f3 con ganchos de acci\u00f3n.<br><br>Mire m\u00e1s abajo y puede ver que he cambiado el texto t\u00edpico de WordPress &quot;Publicaci\u00f3n anterior&quot; y &quot;Pr\u00f3xima publicaci\u00f3n&quot; para mostrar el nombre de la publicaci\u00f3n usando un enlace de filtro.<br><br>Los ganchos de filtro son extremadamente vers\u00e1tiles y se pueden usar para modificar casi cualquier dato en WordPress. Si es un desarrollador, aprender a usar enlaces de filtro es una parte esencial para trabajar con la plataforma de WordPress.<br><br>Si no es un desarrollador y desea ayuda para personalizar su sitio, env\u00edeme un correo electr\u00f3nico a <a href=\"mailto:simon@woosimon.com\">simon@woosimon.com<\/a> \u2013 ya sea un peque\u00f1o ajuste o una revisi\u00f3n total, puedo ayudarte.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve got a WordPress Website, chances are you&#8217;ve heard of filter hooks. But what exactly are they? In this post, I&#8217;ll take a look at what filter hooks are, how they work, and how to use them in your own code. Why use WordPress Filter Hooks? Filter hooks are a great way to modify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":29649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[330],"tags":[331],"class_list":["post-29628","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-wordpress-tips","tag-wordpress-snippets"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What are WordPress Filter &amp; Action Hooks? - WooSimon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/woosimon.com\/es\/what-are-wordpress-filter-action-hooks\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are WordPress Filter &amp; Action Hooks? - WooSimon\" \/>\n<meta property=\"og:description\" content=\"If you&#8217;ve got a WordPress Website, chances are you&#8217;ve heard of filter hooks. But what exactly are they? In this post, I&#8217;ll take a look at what filter hooks are, how they work, and how to use them in your own code. Why use WordPress Filter Hooks? Filter hooks are a great way to modify [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/woosimon.com\/es\/what-are-wordpress-filter-action-hooks\/\" \/>\n<meta property=\"og:site_name\" content=\"WooSimon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WooSimonWeb\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/WooSimonWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-03T07:51:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-03T07:51:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Simon Whyatt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@simon_whyatt\" \/>\n<meta name=\"twitter:site\" content=\"@simon_whyatt\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Simon Whyatt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/\"},\"author\":{\"name\":\"Simon Whyatt\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/#\\\/schema\\\/person\\\/38f6b2be00e744795e9061a75136c46a\"},\"headline\":\"What are WordPress Filter &#038; Action Hooks?\",\"datePublished\":\"2022-12-03T07:51:23+00:00\",\"dateModified\":\"2022-12-03T07:51:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/\"},\"wordCount\":788,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/What-are-WordPress-Filter-Action-Hooks.jpg\",\"keywords\":[\"WordPress Snippets\"],\"articleSection\":[\"Advanced WordPress Tips\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/\",\"url\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/\",\"name\":\"What are WordPress Filter & Action Hooks? - WooSimon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/What-are-WordPress-Filter-Action-Hooks.jpg\",\"datePublished\":\"2022-12-03T07:51:23+00:00\",\"dateModified\":\"2022-12-03T07:51:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/What-are-WordPress-Filter-Action-Hooks.jpg\",\"contentUrl\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/What-are-WordPress-Filter-Action-Hooks.jpg\",\"width\":1200,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/what-are-wordpress-filter-action-hooks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/woosimon.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What are WordPress Filter &#038; Action Hooks?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/#website\",\"url\":\"https:\\\/\\\/woosimon.com\\\/\",\"name\":\"WooSimon\",\"description\":\"Web Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/woosimon.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/#organization\",\"name\":\"WooSimon\",\"url\":\"https:\\\/\\\/woosimon.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/WooSimon-Logo-DSG.png\",\"contentUrl\":\"https:\\\/\\\/woosimon.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/WooSimon-Logo-DSG.png\",\"width\":512,\"height\":512,\"caption\":\"WooSimon\"},\"image\":{\"@id\":\"https:\\\/\\\/woosimon.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/WooSimonWeb\",\"https:\\\/\\\/x.com\\\/simon_whyatt\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/simon-whyatt-11115110\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/woosimon.com\\\/#\\\/schema\\\/person\\\/38f6b2be00e744795e9061a75136c46a\",\"name\":\"Simon Whyatt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g\",\"caption\":\"Simon Whyatt\"},\"description\":\"My name is Simon Whyatt and I\u2019m a web designer based in Barcelona, Spain. I create websites with great user experience that convert visitors into clients.\",\"sameAs\":[\"https:\\\/\\\/woosimon.com\",\"https:\\\/\\\/www.facebook.com\\\/WooSimonWeb\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/simon-whyatt-11115110\\\/\",\"https:\\\/\\\/x.com\\\/simon_whyatt\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00bfQu\u00e9 son los filtros de WordPress y los ganchos de acci\u00f3n? - WooSimon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/woosimon.com\/es\/what-are-wordpress-filter-action-hooks\/","og_locale":"es_ES","og_type":"article","og_title":"What are WordPress Filter & Action Hooks? - WooSimon","og_description":"If you&#8217;ve got a WordPress Website, chances are you&#8217;ve heard of filter hooks. But what exactly are they? In this post, I&#8217;ll take a look at what filter hooks are, how they work, and how to use them in your own code. Why use WordPress Filter Hooks? Filter hooks are a great way to modify [&hellip;]","og_url":"https:\/\/woosimon.com\/es\/what-are-wordpress-filter-action-hooks\/","og_site_name":"WooSimon","article_publisher":"https:\/\/www.facebook.com\/WooSimonWeb","article_author":"https:\/\/www.facebook.com\/WooSimonWeb","article_published_time":"2022-12-03T07:51:23+00:00","article_modified_time":"2022-12-03T07:51:24+00:00","og_image":[{"width":1200,"height":800,"url":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","type":"image\/jpeg"}],"author":"Simon Whyatt","twitter_card":"summary_large_image","twitter_creator":"@simon_whyatt","twitter_site":"@simon_whyatt","twitter_misc":{"Escrito por":"Simon Whyatt","Tiempo de lectura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#article","isPartOf":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/"},"author":{"name":"Simon Whyatt","@id":"https:\/\/woosimon.com\/#\/schema\/person\/38f6b2be00e744795e9061a75136c46a"},"headline":"What are WordPress Filter &#038; Action Hooks?","datePublished":"2022-12-03T07:51:23+00:00","dateModified":"2022-12-03T07:51:24+00:00","mainEntityOfPage":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/"},"wordCount":788,"commentCount":0,"publisher":{"@id":"https:\/\/woosimon.com\/#organization"},"image":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#primaryimage"},"thumbnailUrl":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","keywords":["WordPress Snippets"],"articleSection":["Advanced WordPress Tips"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/","url":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/","name":"\u00bfQu\u00e9 son los filtros de WordPress y los ganchos de acci\u00f3n? - WooSimon","isPartOf":{"@id":"https:\/\/woosimon.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#primaryimage"},"image":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#primaryimage"},"thumbnailUrl":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","datePublished":"2022-12-03T07:51:23+00:00","dateModified":"2022-12-03T07:51:24+00:00","breadcrumb":{"@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#primaryimage","url":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","contentUrl":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","width":1200,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/woosimon.com\/what-are-wordpress-filter-action-hooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/woosimon.com\/"},{"@type":"ListItem","position":2,"name":"What are WordPress Filter &#038; Action Hooks?"}]},{"@type":"WebSite","@id":"https:\/\/woosimon.com\/#website","url":"https:\/\/woosimon.com\/","name":"WooSimon","description":"Soluciones web","publisher":{"@id":"https:\/\/woosimon.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/woosimon.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/woosimon.com\/#organization","name":"WooSimon","url":"https:\/\/woosimon.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/woosimon.com\/#\/schema\/logo\/image\/","url":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/02\/WooSimon-Logo-DSG.png","contentUrl":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/02\/WooSimon-Logo-DSG.png","width":512,"height":512,"caption":"WooSimon"},"image":{"@id":"https:\/\/woosimon.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/WooSimonWeb","https:\/\/x.com\/simon_whyatt","https:\/\/www.linkedin.com\/in\/simon-whyatt-11115110\/"]},{"@type":"Person","@id":"https:\/\/woosimon.com\/#\/schema\/person\/38f6b2be00e744795e9061a75136c46a","name":"Simon Whyatt","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b09761856ba4bbcb79197fb9e715e3abc28203fbd1753daf09e5019d9b135233?s=96&d=mm&r=g","caption":"Simon Whyatt"},"description":"Mi nombre es Simon Whyatt y soy dise\u00f1ador web con sede en Barcelona, Espa\u00f1a. Creo sitios web con gran experiencia de usuario que convierten a los visitantes en clientes.","sameAs":["https:\/\/woosimon.com","https:\/\/www.facebook.com\/WooSimonWeb","https:\/\/www.linkedin.com\/in\/simon-whyatt-11115110\/","https:\/\/x.com\/simon_whyatt"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg","uagb_featured_image_src":{"full":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg",1200,800,false],"thumbnail":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-150x150.jpg",150,150,true],"medium":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-300x200.jpg",300,200,true],"medium_large":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-768x512.jpg",768,512,true],"large":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg",1200,800,false],"2048x2048":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg",1200,800,false],"trp-custom-language-flag":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-18x12.jpg",18,12,true],"widget-thumbnail":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks-75x75.jpg",75,75,true],"mailpoet_newsletter_max":["https:\/\/woosimon.com\/wp-content\/uploads\/2022\/12\/What-are-WordPress-Filter-Action-Hooks.jpg",1200,800,false]},"uagb_author_info":{"display_name":"Simon Whyatt","author_link":"https:\/\/woosimon.com\/es\/author\/siwhyatt\/"},"uagb_comment_info":0,"uagb_excerpt":"If you&#8217;ve got a WordPress Website, chances are you&#8217;ve heard of filter hooks. But what exactly are they? In this post, I&#8217;ll take a look at what filter hooks are, how they work, and how to use them in your own code. Why use WordPress Filter Hooks? Filter hooks are a great way to modify&hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/posts\/29628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/comments?post=29628"}],"version-history":[{"count":0,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/posts\/29628\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/media\/29649"}],"wp:attachment":[{"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/media?parent=29628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/categories?post=29628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woosimon.com\/es\/wp-json\/wp\/v2\/tags?post=29628"}],"curies":[{"name":"palabra clave","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}