{"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\/pt\/docs\/actions-and-filters-in-memberpress\/","title":{"rendered":"A\u00e7\u00f5es e filtros no MemberPress"},"content":{"rendered":"<div class=\"callout\">\n<p id=\"top\">Abordado neste artigo<\/p>\n<ul>\n<li><a href=\"#what-are-hooks\">O que s\u00e3o Hooks?<\/a><\/li>\n<li><a href=\"#using-hooks\">Uso de ganchos<\/a><\/li>\n<li><a href=\"#overview\">A\u00e7\u00e3o e filtros<\/a><\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">O que s\u00e3o ganchos?<\/h2>\n\n\n\n<p>Os Hooks no WordPress permitem que voc\u00ea altere ou adicione c\u00f3digo sem editar os arquivos principais. Eles s\u00e3o usados extensivamente no WordPress e no MemberPress e s\u00e3o muito \u00fateis para os desenvolvedores.<\/p>\n\n\n\n<p>H\u00e1 dois tipos de ganchos: <strong>a\u00e7\u00f5es<\/strong> e <strong>filtros<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A\u00e7\u00f5es<\/strong> permitem que voc\u00ea insira c\u00f3digo personalizado onde quer que o gancho seja executado<\/li>\n\n\n\n<li><strong>Filtros<\/strong> permitem que voc\u00ea manipule e retorne uma vari\u00e1vel que ele passa para o filtro<\/li>\n<\/ul>\n\n\n\n<p>Esta documenta\u00e7\u00e3o \u00e9 uma lista de algumas das a\u00e7\u00f5es e filtros mais \u00fateis no 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 Observe que esta \u00e9 uma documenta\u00e7\u00e3o de n\u00edvel de desenvolvedor. Nosso suporte n\u00e3o cobre o desenvolvimento personalizado.\u00a0 <br>\n\t Se precisar de ajuda com sua personaliza\u00e7\u00e3o, voc\u00ea pode <a href=\"https:\/\/memberpress.com\/pt\/memberpress-customizations\/\" target=\"_blank\" rel=\"noopener\">entre em contato com um dos desenvolvedores<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-hooks\">Uso de ganchos<\/h2>\n\n\n\n<p>Se quiser usar um gancho para adicionar ou manipular c\u00f3digo, voc\u00ea poder\u00e1 adicionar seu c\u00f3digo personalizado de v\u00e1rias maneiras:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Voc\u00ea pode adicionar seu c\u00f3digo no final do arquivo functions.php do seu tema<\/li>\n\n\n\n<li>Use um dos plug-ins, como o <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">C\u00f3digo WPC<\/a> (consulte este artigo para obter detalhes: <a href=\"https:\/\/memberpress.com\/pt\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\">Como adicionar trechos de c\u00f3digo personalizados no WPCode<\/a>).<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Uso de ganchos de a\u00e7\u00e3o<\/h4>\n\n\n\n<p>Para executar seu c\u00f3digo usando um gancho de a\u00e7\u00e3o, voc\u00ea precisa usar sua fun\u00e7\u00e3o personalizada da seguinte forma:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">add_action( 'action_name', 'your_function_name' );\nfunction your_function_name() {\n    \/\/ Seu 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 a vari\u00e1vel passada em um gancho de filtro, voc\u00ea precisa usar sua fun\u00e7\u00e3o personalizada da seguinte forma:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">add_filter( 'filter_name', 'your_function_name' );\nfunction your_function_name( $variable ) {\n    \/\/ Seu c\u00f3digo\n    return $variable;\n}<\/pre>\n\n\n\n<p>Lembre-se de que, com os filtros, voc\u00ea deve retornar um valor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"overview\">Vis\u00e3o geral<\/h2>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/pt\/docs\/action-hooks-in-memberpress\/\" target=\"_blank\" rel=\"noopener\">Ganchos de a\u00e7\u00e3o<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/pt\/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\/pt\/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=\"pt_BR\" \/>\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\/pt\/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\\\/pt\\\/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\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#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\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\"},\"articleSection\":\"Developer Tools\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"name\":\"Developer Tools\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"position\":3,\"name\":\"Developer Tools\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/developer-tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#listItem\",\"name\":\"Actions and Filters in MemberPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#listItem\",\"position\":4,\"name\":\"Actions and Filters in MemberPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/developer-tools\\\/#listItem\",\"name\":\"Developer Tools\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/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\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/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\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/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\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/actions-and-filters-in-memberpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/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\\\/pt\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#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":"A\u00e7\u00f5es e filtros no MemberPress | MemberPress","description":"Abordado neste artigo O que s\u00e3o Hooks? Uso de Hooks Action e Filters O que s\u00e3o Hooks? Os Hooks no WordPress permitem que voc\u00ea altere ou adicione c\u00f3digo sem editar os arquivos principais. Eles s\u00e3o usados extensivamente no WordPress e no MemberPress e s\u00e3o muito \u00fateis para os desenvolvedores. H\u00e1 dois tipos de hooks: a\u00e7\u00f5es e filtros. As a\u00e7\u00f5es permitem que voc\u00ea","canonical_url":"https:\/\/memberpress.com\/pt\/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\/pt\/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\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/#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":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#webpage"},"articleSection":"Developer Tools"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/developer-tools\/#listItem","name":"Developer Tools"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/developer-tools\/#listItem","position":3,"name":"Developer Tools","item":"https:\/\/memberpress.com\/pt\/doc-categories\/developer-tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#listItem","name":"Actions and Filters in MemberPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#listItem","position":4,"name":"Actions and Filters in MemberPress","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/developer-tools\/#listItem","name":"Developer Tools"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/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\/pt\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/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\/pt\/docs\/actions-and-filters-in-memberpress\/#webpage","url":"https:\/\/memberpress.com\/pt\/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":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/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\/pt\/#website","url":"https:\/\/memberpress.com\/pt\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"}}]},"og:locale":"pt_BR","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\/pt\/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\/pt\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/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\/pt\/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\/pt"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/"},{"label":"Developer Tools","link":"https:\/\/memberpress.com\/pt\/doc-categories\/developer-tools\/"},{"label":"Actions and Filters in MemberPress","link":"https:\/\/memberpress.com\/pt\/docs\/actions-and-filters-in-memberpress\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/62047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=62047"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/62047\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=62047"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-category?post=62047"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-tag?post=62047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}