{"id":104951,"date":"2021-10-08T17:28:24","date_gmt":"2021-10-08T11:58:24","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=104951"},"modified":"2021-10-27T18:48:40","modified_gmt":"2021-10-27T13:18:40","slug":"deprecated-astra-hooks","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/deprecated-astra-hooks\/","title":{"rendered":"Sustituci\u00f3n de los ganchos obsoletos Astra Theme y Astra Pro"},"content":{"rendered":"<p>Tras las actualizaciones de Astra Theme 3.7.4 y Astra Pro 3.6.2, hemos dejado obsoletas un n\u00famero significativo de funciones, filtros y acciones. Por lo tanto, algunos de los hooks de Astra que puedas haber a\u00f1adido a tu sitio web deben ser actualizados.<\/p>\n\n\n\n<p>Por lo tanto, este documento le ayudar\u00e1 a sustituir estos ganchos en su sitio web. Utilice las listas siguientes para actualizar su c\u00f3digo.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ganchos Astra obsoletos y sus sustitutos<\/h2>\n\n\n\n<p>M\u00e1s abajo encontrar\u00e1 listas de funciones, filtros y acciones. En consecuencia, actualice los ganchos si ha a\u00f1adido filtros, acciones u otras funciones a su sitio web. <\/p>\n\n\n\n<p>Las versiones Astra Theme 3.7.4 y Astra Pro 3.6.2 siguen siendo compatibles con los c\u00f3digos antiguos para evitar cualquier problema. Aunque su sitio web seguir\u00e1 funcionando bien despu\u00e9s de la actualizaci\u00f3n, debe reemplazar los ganchos obsoletos con los reemplazos a continuaci\u00f3n. <\/p>\n\n\n\n<p>Adem\u00e1s, para ayudarte con estas actualizaciones, hemos a\u00f1adido notificaciones de backend:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications.jpeg\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"530\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications.jpeg\" alt=\"Deprecated Astra Hooks Norification\" class=\"wp-image-104974\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications.jpeg 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications-300x116.jpeg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications-1024x397.jpeg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/10\/ast-3-7-deprecated-functions-notifications-768x298.jpeg 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure>\n\n\n\n<p>Para ello, sustituya los ganchos obsoletos de su c\u00f3digo por los sustitutos de las listas. De este modo, su sitio web seguir\u00e1 siendo totalmente funcional y compatible con futuras actualizaciones.<\/p>\n\n\n\n<div class=\"wp-block-uagb-tabs uagb-block-a4f49d8d uagb-tabs__wrap uagb-tabs__hstyle1-desktop uagb-tabs__hstyle1-tablet uagb-tabs__hstyle1-mobile\" data-tab-active=\"0\"><ul class=\"uagb-tabs__panel uagb-tabs__align-left\"><li class=\"uagb-tab uagb-tabs__active\"><a href=\"#uagb-tabs__tab0\" class=\"uagb-tabs-list uagb-tabs__icon-position-left\" data-tab=\"0\"><span>Acciones<\/span><\/a><\/li><li class=\"uagb-tab\"><a href=\"#uagb-tabs__tab1\" class=\"uagb-tabs-list uagb-tabs__icon-position-left\" data-tab=\"1\"><span>Filtros<\/span><\/a><\/li><li class=\"uagb-tab\"><a href=\"#uagb-tabs__tab2\" class=\"uagb-tabs-list uagb-tabs__icon-position-left\" data-tab=\"2\"><span>Funciones<\/span><\/a><\/li><\/ul><div class=\"uagb-tabs__body-wrap\">\n<div class=\"wp-block-uagb-tabs-child uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-0\"><div class=\"uagb-blocks__00c437ed uagb-tabs__body\" aria-labelledby=\"uagb-tabs__tab0\">\n<figure class=\"wp-block-table aligncenter uag-hide-mob\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Acci\u00f3n obsoleta<\/strong><\/td><td><strong>Sustituci\u00f3n<\/strong><\/td><\/tr><tr><td>astra_get_css_files<\/td><td>astra_addon_get_css_files<\/td><\/tr><tr><td>astra_get_css_files<\/td><td>astra_addon_get_js_files<\/td><\/tr><tr><td>astra_after_render_js<\/td><td>astra_addon_after_render_js<\/td><\/tr><tr><td>asta_register_admin_menu                    <\/td><td>astra_register_admin_menu                      <\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-uagb-tabs-child uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-1\"><div class=\"uagb-blocks__f5568a20 uagb-tabs__body\" aria-labelledby=\"uagb-tabs__tab1\">\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td><strong>Filtro obsoleto<\/strong><\/td><td><strong>Sustituci\u00f3n<\/strong><\/td><\/tr><tr><td>astra_bb_render_content_by_id<\/td><td>astra_addon_bb_render_content_by_id<\/td><\/tr><tr><td>astra_get_assets_uploads_dir<\/td><td>astra_addon_get_assets_uploads_dir<\/td><\/tr><tr><td>astra_pro_show_branding<\/td><td>astra_addon_show_branding<\/td><\/tr><tr><td>astra_dynamic_css<\/td><td>astra_addon_dynamic_css<\/td><\/tr><tr><td>astra_add_css_file<\/td><td>astra_addon_add_css_file<\/td><\/tr><tr><td>astra_add_js_file<\/td><td>astra_addon_add_js_file<\/td><\/tr><tr><td>astra_add_dependent_js_file<\/td><td>astra_addon_add_dependent_js_file<\/td><\/tr><tr><td>astra_render_css<\/td><td>astra_addon_render_css<\/td><\/tr><tr><td>astra_render_js<\/td><td>astra_addon_render_js<\/td><\/tr><tr><td>astra_idiomas_directorio<\/td><td>astra_addon_idiomas_directorio<\/td><\/tr><tr><td>astra_ext_default_addons<\/td><td>astra_addon_ext_default_addons<\/td><\/tr><tr><td>astra_get_addons<\/td><td>astra_addon_get_addons<\/td><\/tr><tr><td>astra_ext_enabled_extensions<\/td><td>astra_addon_enabled_extensions<\/td><\/tr><tr><td>astra_custom_404_options<\/td><td>astra_addon_opciones_personalizadas_404<\/td><\/tr><tr><td>astra_cache_asset_query_var<\/td><td>astra_addon_cache_asset_query_var<\/td><\/tr><tr><td>astra_cache_asset_type<\/td><td>astra_addon_cache_asset_type<\/td><\/tr><tr><td>astra_load_dynamic_css_inline<\/td><td>astra_addon_load_dynamic_css_inline<\/td><\/tr><tr><td>astra_flags_svg<\/td><td>astra_addon_flags_svg<\/td><\/tr><tr><td>astra_display_on_list<\/td><td>astra_addon_display_on_list<\/td><\/tr><tr><td>astra_location_rule_post_types<\/td><td>astra_addon_location_rule_post_types<\/td><\/tr><tr><td>astra_user_roles_list<\/td><td>astra_addon_user_roles_list<\/td><\/tr><tr><td>astra_target_page_settings<\/td><td>astra_addon_target_page_settings<\/td><\/tr><tr><td>astra_get_display_posts_by_conditions<\/td><td>astra_addon_get_display_posts_by_conditions<\/td><\/tr><tr><td>astra_meta_args_post_by_condition<\/td><td>astra_addon_meta_args_post_by_condition<\/td><\/tr><tr><td>astra_pro_etiqueta_blanca_a\u00f1adir_formulario<\/td><td>astra_addon_etiqueta_blanca_a\u00f1adir_formulario<\/td><\/tr><tr><td>ast_footer_bar_display<\/td><td>astra_footer_bar_display<\/td><\/tr><tr><td>ast_main_header_display<\/td><td>astra_main_header_display<\/td><\/tr><tr><td>clase_borde_submenu_secundario<\/td><td>astra_secondary_submenu_border_class<\/td><\/tr><tr><td>gtn_image_group_css_comp<\/td><td>astra_gutenberg_image_group_style_support<\/td><\/tr><tr><td>ast_footer_sml_layout<\/td><td>astra_footer_sml_layout<\/td><\/tr><tr><td>primary_submenu_border_class<\/td><td>astra_primary_submenu_border_class<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-uagb-tabs-child uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-2\"><div class=\"uagb-blocks__46cf57fd uagb-tabs__body\" aria-labelledby=\"uagb-tabs__tab2\">\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td><strong>Funci\u00f3n obsoleta<\/strong><\/td><td><strong>Sustituci\u00f3n<\/strong><\/td><\/tr><tr><td>astra_get_supported_posts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>astra_addon_get_supported_posts<\/td><\/tr><tr><td>astra_rgba2hex<\/td><td>astra_addon_rgba2hex<\/td><\/tr><tr><td>astra_check_is_hex<\/td><td>astra_addon_check_is_hex<\/td><\/tr><tr><td>is_support_swap_mobile_below_header_sections<\/td><td>astra_addon_swap_mobile_below_header_sections<\/td><\/tr><tr><td>is_astra_theme_3_5_0_version<\/td><td>astra_addon_check_theme_3_5_0_version<\/td><\/tr><tr><td>sticky_header_default_site_title_tagline_css_comp<\/td><td>astra_addon_sticky_site_title_tagline_css_comp<\/td><\/tr><tr><td>is_support_swap_mobile_above_header_sections<\/td><td>astra_addon_support_swap_mobile_above_header_sections<\/td><\/tr><tr><td>astra_return_content_layout_page_builder<\/td><td>astra_addon_return_content_layout_page_builder<\/td><\/tr><tr><td>astra_return_page_layout_no_sidebar<\/td><td>astra_addon_return_page_layout_no_sidebar<\/td><\/tr><tr><td>astra_pro_is_emp_endpoint<\/td><td>astra_addon_is_amp_endpoint<\/td><\/tr><tr><td>is_astra_breadcrumb_trail<\/td><td>astra_addon_is_breadcrumb_trail<\/td><\/tr><tr><td>astra_breadcrumb_shortcode<\/td><td>astra_addon_breadcrumb_shortcode<\/td><\/tr><tr><td>astra_get_template<\/td><td>astra_addon_get_template<\/td><\/tr><tr><td>astra_locate_template<\/td><td>astra_addon_locate_template<\/td><\/tr><tr><td>astra_ext_adv_search_dynamic_css<\/td><td>astra_addon_adv_search_dynamic_css<\/td><\/tr><tr><td>astra_ext_advanced_search_dynamic_css<\/td><td>astra_addon_busqueda_avanzada_dynamic_css<\/td><\/tr><tr><td>astra_ext_header_builder_sections_colors_dynamic_css<\/td><td>astra_addon_header_builder_sections_colors_dynamic_css<\/td><\/tr><tr><td>astra_ext_header_sections_colors_dynamic_css<\/td><td>astra_addon_header_sections_colors_dynamic_css<\/td><\/tr><tr><td>astra_ldrv3_dynamic_css<\/td><td>astra_addon_ldrv3_dynamic_css<\/td><\/tr><tr><td>astra_learndash_dynamic_css<\/td><td>astra_addon_learndash_dynamic_css<\/td><\/tr><tr><td>astra_ext_mobile_above_header_dynamic_css<\/td><td>astra_addon_mobile_above_header_dynamic_css<\/td><\/tr><tr><td>astra_ext_mobile_below_header_dynamic_css<\/td><td>astra_addon_mobile_below_header_dynamic_css<\/td><\/tr><tr><td>astra_ext_mobile_header_colors_background_dynamic_css<\/td><td>astra_addon_mobile_header_colors_background_dynamic_css<\/td><\/tr><tr><td>astra_ext_mobile_header_spacing_dynamic_css<\/td><td>astra_addon_mobile_header_spacing_dynamic_css<\/td><\/tr><tr><td>astra_ext_mobile_header_dynamic_css<\/td><td>astra_addon_mobile_header_dynamic_css<\/td><\/tr><tr><td>astra_ext_mega_menu_dynamic_css<\/td><td>astra_addon_mega_menu_dynamic_css<\/td><\/tr><tr><td>astra_ext_scroll_to_top_dynamic_css<\/td><td>astra_addon_scroll_to_top_dynamic_css<\/td><\/tr><tr><td>astra_ext_fb_button_dynamic_css<\/td><td>astra_addon_footer_button_dynamic_css<\/td><\/tr><tr><td>astra_fb_divider_dynamic_css<\/td><td>astra_addon_footer_divider_dynamic_css<\/td><\/tr><tr><td>astra_fb_lang_switcher_dynamic_css<\/td><td>astra_addon_footer_lang_switcher_dynamic_css<\/td><\/tr><tr><td>astra_footer_social_dynamic_css<\/td><td>astra_addon_footer_social_dynamic_css<\/td><\/tr><tr><td>astra_ext_hb_button_dynamic_css<\/td><td>astra_addon_header_button_dynamic_css<\/td><\/tr><tr><td>astra_hb_divider_dynamic_css<\/td><td>astra_addon_header_divider_dynamic_css<\/td><\/tr><tr><td>astra_hb_lang_switcher_dynamic_css<\/td><td>astra_addon_header_lang_switcher_dynamic_css<\/td><\/tr><tr><td>astra_ext_hb_menu_dynamic_css<\/td><td>astra_addon_header_menu_dynamic_css<\/td><\/tr><tr><td>astra_header_social_dynamic_css<\/td><td>astra_addon_header_social_dynamic_css<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Tras las actualizaciones de Astra Theme 3.7.4 y Astra Pro 3.6.2, hemos dejado obsoletas un n\u00famero significativo de funciones, filtros y acciones. Por lo tanto, algunos de los hooks de Astra que puedas haber a\u00f1adido a tu sitio web deben ser actualizados. Por lo tanto, este documento te ayudar\u00e1 a reemplazar estos hooks en tu sitio web. Por favor, utiliza las listas de abajo para actualizar tus [...]<\/p>","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","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":"","theme-transparent-header-meta":"default","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":"","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":""}},"footnotes":""},"docs_category":[2109,2110],"docs_tag":[],"class_list":{"0":"post-104951","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-theme-pro-filters","6":"docs_category-astra-header-footer-filters"},"spectra_custom_meta":{"wp_last_modified_info":["October 27, 2021 @ 6:48 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1635340722:70"],"views":["6595"],"_edit_last":["70"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["60"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"_wp_old_slug":["deprecated-astra-functions"],"helpful":["5"],"unhelpful":["5"],"redirects":["5"],"_yoast_wpseo_focuskw":["Deprecated Astra Hooks"],"_yoast_wpseo_metadesc":["With Astra Theme 3.7.4 and Astra Pro 3.6.2, a number of Astra hooks were deprecated. You can find the replacement hooks in this document."],"_yoast_wpseo_linkdex":["71"],"_yoast_wpseo_primary_docs_category":["2109"],"rank_math_primary_docs_category":["2109"],"rank_math_description":["With Astra Theme 3.7.4 and Astra Pro 3.6.2, a number of Astra hooks were deprecated. You can find the replacement hooks in this document."],"rank_math_focus_keyword":["Deprecated Astra Hooks"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["88"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"3af5a7b143b5e0d271a91c2317b86a74\";s:6:\"images\";a:1:{i:0;i:104974;}}"],"_trp_automatically_translated_slug_es_ES":["ganchos-astra-obsoletos"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Nikola Mihajlovic","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/nikolam\/"},"uagb_comment_info":0,"uagb_excerpt":"Following Astra Theme 3.7.4 and Astra Pro 3.6.2 updates, we deprecated a significant number of functions, filters, and actions. Thus, some of the Astra hooks you might have added to your website should be updated. Therefore, this document will help you replace these hooks on your website. Please use the lists below to update your&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/104951"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=104951"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/104951\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=104951"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=104951"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=104951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}