{"id":62047,"date":"2024-02-13T08:50:14","date_gmt":"2024-02-13T13:50:14","guid":{"rendered":"https:\/\/memberpress.com\/docs\/actions-and-filters-in-memberpress\/"},"modified":"2024-02-21T09:15:16","modified_gmt":"2024-02-21T14:15:16","slug":"actions-and-filters-in-memberpress","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/","title":{"rendered":"Acciones y filtros en MemberPress"},"content":{"rendered":"<div class=\"callout\">\n<p id=\"top\">Tratados en este art\u00edculo<\/p>\n<ul>\n<li><a href=\"#what-are-hooks\">\u00bfQu\u00e9 son los ganchos?<\/a><\/li>\n<li><a href=\"#using-hooks\">Uso de ganchos<\/a><\/li>\n<li><a href=\"#overview\">Acci\u00f3n y filtros<\/a><\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfQu\u00e9 son los ganchos?<\/h2>\n\n\n\n<p>Los hooks en WordPress permiten cambiar o a\u00f1adir c\u00f3digo sin editar los archivos del n\u00facleo. Se utilizan ampliamente en WordPress y MemberPress y son muy \u00fatiles para los desarrolladores.<\/p>\n\n\n\n<p>Hay dos tipos de ganchos: <strong>acciones<\/strong> y <strong>filtros<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Acciones<\/strong> le permiten insertar c\u00f3digo personalizado dondequiera que se ejecute el gancho<\/li>\n\n\n\n<li><strong>Filtros<\/strong> permiten manipular y devolver una variable que pasa al filtro<\/li>\n<\/ul>\n\n\n\n<p>Esta documentaci\u00f3n es una lista de algunas de las acciones y filtros m\u00e1s \u00fatiles de MemberPress.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">\n\t Tenga en cuenta que se trata de documentaci\u00f3n para desarrolladores. Nuestro soporte no cubre el desarrollo personalizado.\u00a0 <br>\n\t Si necesitas ayuda con tu personalizaci\u00f3n puedes <a href=\"https:\/\/memberpress.com\/es\/memberpress-customizations\/\" target=\"_blank\" rel=\"noopener\">p\u00f3ngase en contacto con uno de los promotores<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-hooks\">Uso de ganchos<\/h2>\n\n\n\n<p>Si quieres usar un hook para a\u00f1adir o manipular c\u00f3digo, puedes a\u00f1adir tu c\u00f3digo personalizado de muchas maneras:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Puede a\u00f1adir su c\u00f3digo al final del archivo functions.php de su tema<\/li>\n\n\n\n<li>Utilice uno de los plugins como el <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">WPCode<\/a> (consulte este art\u00edculo para obtener m\u00e1s informaci\u00f3n: <a href=\"https:\/\/memberpress.com\/es\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\">C\u00f3mo a\u00f1adir fragmentos de c\u00f3digo personalizados en WPCode<\/a>).<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Utilizar ganchos de acci\u00f3n<\/h4>\n\n\n\n<p>Para ejecutar su c\u00f3digo utilizando un gancho de acci\u00f3n, debe utilizar su funci\u00f3n personalizada de la siguiente manera:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">add_action( 'nombre_accion', 'tu_nombre_funcion' );\nfunction tu_nombre_funcion() {\n    \/\/ Tu c\u00f3digo\n}\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Uso de ganchos de filtro<\/h4>\n\n\n\n<p>Para manipular la variable pasada en un gancho de filtro, debe utilizar su funci\u00f3n personalizada de la siguiente manera:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">add_filter( 'nombre_filtro', 'tu_nombre_funcion' );\nfunction tu_nombre_funcion( $variable ) {\n    \/\/ Su c\u00f3digo\n    return $variable;\n}<\/pre>\n\n\n\n<p>Tenga en cuenta que con los filtros debe devolver un valor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"overview\">Visi\u00f3n general<\/h2>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/es\/docs\/action-hooks-in-memberpress\/\" target=\"_blank\" rel=\"noopener\">Ganchos de acci\u00f3n<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/es\/docs\/filter-hooks-in-memberpress\/\" target=\"_blank\" rel=\"noopener\">Ganchos de filtro<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. This documentation is [\u2026]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1316],"ht-kb-tag":[],"class_list":{"0":"post-62047","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-developer-tools","7":"entry"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Actions and Filters in MemberPress | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T13:50:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-02-21T14:15:16+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Actions and Filters in MemberPress | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#article\",\"name\":\"Actions and Filters in MemberPress | MemberPress\",\"headline\":\"Actions and Filters in MemberPress\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#articleImage\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"datePublished\":\"2024-02-13T08:50:14-05:00\",\"dateModified\":\"2024-02-21T09:15:16-05:00\",\"inLanguage\":\"es-ES\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\"},\"articleSection\":\"Developer Tools\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"name\":\"Developer Tools\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"position\":3,\"name\":\"Developer Tools\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/developer-tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#listItem\",\"name\":\"Actions and Filters in MemberPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#listItem\",\"position\":4,\"name\":\"Actions and Filters in MemberPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"name\":\"Developer Tools\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/\",\"name\":\"Actions and Filters in MemberPress | MemberPress\",\"description\":\"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you\",\"inLanguage\":\"es-ES\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/actions-and-filters-in-memberpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T08:50:14-05:00\",\"dateModified\":\"2024-02-21T09:15:16-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"es-ES\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Actions and Filters in MemberPress | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Acciones y filtros en MemberPress | MemberPress","description":"Contenido de este art\u00edculo \u00bfQu\u00e9 son los ganchos? Uso de Hooks Acci\u00f3n y Filtros \u00bfQu\u00e9 son los Hooks? Los Hooks en WordPress le permiten cambiar o a\u00f1adir c\u00f3digo sin editar los archivos principales. Se utilizan ampliamente en WordPress y MemberPress y son muy \u00fatiles para los desarrolladores. Hay dos tipos de hooks: acciones y filtros. Las acciones le permiten","canonical_url":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#article","name":"Actions and Filters in MemberPress | MemberPress","headline":"Actions and Filters in MemberPress","author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/#articleImage","width":1650,"height":1275,"caption":"memberpress logo icon"},"datePublished":"2024-02-13T08:50:14-05:00","dateModified":"2024-02-21T09:15:16-05:00","inLanguage":"es-ES","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#webpage"},"articleSection":"Developer Tools"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/es","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/#listItem","name":"Developer Tools"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/#listItem","position":3,"name":"Developer Tools","item":"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#listItem","name":"Actions and Filters in MemberPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#listItem","position":4,"name":"Actions and Filters in MemberPress","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/#listItem","name":"Developer Tools"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/es\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/es\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#webpage","url":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/","name":"Actions and Filters in MemberPress | MemberPress","description":"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you","inLanguage":"es-ES","isPartOf":{"@id":"https:\/\/memberpress.com\/es\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T08:50:14-05:00","dateModified":"2024-02-21T09:15:16-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/es\/#website","url":"https:\/\/memberpress.com\/es\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"es-ES","publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"}}]},"og:locale":"es_ES","og:site_name":"MemberPress","og:type":"article","og:title":"Actions and Filters in MemberPress | MemberPress","og:description":"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you","og:url":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T13:50:14+00:00","article:modified_time":"2024-02-21T14:15:16+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Actions and Filters in MemberPress | MemberPress","twitter:description":"Covered in this article What are Hooks? Using Hooks Action and Filters What Are Hooks? Hooks in WordPress allow you to change or add code without editing core files. They are used extensively throughout WordPress and MemberPress and are very useful for developers. There are two types of hooks: actions and filters. Actions allow you","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"62047","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2025-10-09 21:54:01","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2024-02-13 13:50:15","updated":"2026-03-03 14:53:01"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/\" title=\"Advanced Topics\">Advanced Topics<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/\" title=\"Developer Tools\">Developer Tools<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tActions and Filters in MemberPress\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/es"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/es\/doc-categories\/advanced-topics\/"},{"label":"Developer Tools","link":"https:\/\/memberpress.com\/es\/doc-categories\/developer-tools\/"},{"label":"Actions and Filters in MemberPress","link":"https:\/\/memberpress.com\/es\/docs\/actions-and-filters-in-memberpress\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/62047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/comments?post=62047"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/62047\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media?parent=62047"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=62047"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=62047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}