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 code.
Deprecated Astra Hooks and Their Replacements
In short, further down, you will find lists of functions, filters, and actions. Accordingly, please update hooks if you added any filters, actions, or other functions to your website.
Astra Theme 3.7.4 and Astra Pro 3.6.2 versions are still compatible with old codes to avoid any issues.ย Although your website will still work well after the update, you should replace deprecated hooks with the replacements below.
Further, to help you with these updates, we added backend notifications:
Hence, you can do this by replacing deprecated hooks in your code with the replacements from the lists. This way, your website will remain fully functional and compatible with future updates.
Deprecated action | Replacement |
astra_get_css_files | astra_addon_get_css_files |
astra_get_css_files | astra_addon_get_js_files |
astra_after_render_js | astra_addon_after_render_js |
asta_register_admin_menu | astra_register_admin_menu |
Deprecated filter | Replacement |
astra_bb_render_content_by_id | astra_addon_bb_render_content_by_id |
astra_get_assets_uploads_dir | astra_addon_get_assets_uploads_dir |
astra_pro_show_branding | astra_addon_show_branding |
astra_dynamic_css | astra_addon_dynamic_css |
astra_add_css_file | astra_addon_add_css_file |
astra_add_js_file | astra_addon_add_js_file |
astra_add_dependent_js_file | astra_addon_add_dependent_js_file |
astra_render_css | astra_addon_render_css |
astra_render_js | astra_addon_render_js |
astra_languages_directory | astra_addon_languages_directory |
astra_ext_default_addons | astra_addon_ext_default_addons |
astra_get_addons | astra_addon_get_addons |
astra_ext_enabled_extensions | astra_addon_enabled_extensions |
astra_custom_404_options | astra_addon_custom_404_options |
astra_cache_asset_query_var | astra_addon_cache_asset_query_var |
astra_cache_asset_type | astra_addon_cache_asset_type |
astra_load_dynamic_css_inline | astra_addon_load_dynamic_css_inline |
astra_flags_svg | astra_addon_flags_svg |
astra_display_on_list | astra_addon_display_on_list |
astra_location_rule_post_types | astra_addon_location_rule_post_types |
astra_user_roles_list | astra_addon_user_roles_list |
astra_target_page_settings | astra_addon_target_page_settings |
astra_get_display_posts_by_conditions | astra_addon_get_display_posts_by_conditions |
astra_meta_args_post_by_condition | astra_addon_meta_args_post_by_condition |
astra_pro_white_label_add_form | astra_addon_white_label_add_form |
ast_footer_bar_display | astra_footer_bar_display |
ast_main_header_display | astra_main_header_display |
secondary_submenu_border_class | astra_secondary_submenu_border_class |
gtn_image_group_css_comp | astra_gutenberg_image_group_style_support |
ast_footer_sml_layout | astra_footer_sml_layout |
primary_submenu_border_class | astra_primary_submenu_border_class |
Deprecated function | Replacement |
astra_get_supported_posts | astra_addon_get_supported_posts |
astra_rgba2hex | astra_addon_rgba2hex |
astra_check_is_hex | astra_addon_check_is_hex |
is_support_swap_mobile_below_header_sections | astra_addon_swap_mobile_below_header_sections |
is_astra_theme_3_5_0_version | astra_addon_check_theme_3_5_0_version |
sticky_header_default_site_title_tagline_css_comp | astra_addon_sticky_site_title_tagline_css_comp |
is_support_swap_mobile_above_header_sections | astra_addon_support_swap_mobile_above_header_sections |
astra_return_content_layout_page_builder | astra_addon_return_content_layout_page_builder |
astra_return_page_layout_no_sidebar | astra_addon_return_page_layout_no_sidebar |
astra_pro_is_emp_endpoint | astra_addon_is_amp_endpoint |
is_astra_breadcrumb_trail | astra_addon_is_breadcrumb_trail |
astra_breadcrumb_shortcode | astra_addon_breadcrumb_shortcode |
astra_get_template | astra_addon_get_template |
astra_locate_template | astra_addon_locate_template |
astra_ext_adv_search_dynamic_css | astra_addon_adv_search_dynamic_css |
astra_ext_advanced_search_dynamic_css | astra_addon_advanced_search_dynamic_css |
astra_ext_header_builder_sections_colors_dynamic_css | astra_addon_header_builder_sections_colors_dynamic_css |
astra_ext_header_sections_colors_dynamic_css | astra_addon_header_sections_colors_dynamic_css |
astra_ldrv3_dynamic_css | astra_addon_ldrv3_dynamic_css |
astra_learndash_dynamic_css | astra_addon_learndash_dynamic_css |
astra_ext_mobile_above_header_dynamic_css | astra_addon_mobile_above_header_dynamic_css |
astra_ext_mobile_below_header_dynamic_css | astra_addon_mobile_below_header_dynamic_css |
astra_ext_mobile_header_colors_background_dynamic_css | astra_addon_mobile_header_colors_background_dynamic_css |
astra_ext_mobile_header_spacing_dynamic_css | astra_addon_mobile_header_spacing_dynamic_css |
astra_ext_mobile_header_dynamic_css | astra_addon_mobile_header_dynamic_css |
astra_ext_mega_menu_dynamic_css | astra_addon_mega_menu_dynamic_css |
astra_ext_scroll_to_top_dynamic_css | astra_addon_scroll_to_top_dynamic_css |
astra_ext_fb_button_dynamic_css | astra_addon_footer_button_dynamic_css |
astra_fb_divider_dynamic_css | astra_addon_footer_divider_dynamic_css |
astra_fb_lang_switcher_dynamic_css | astra_addon_footer_lang_switcher_dynamic_css |
astra_footer_social_dynamic_css | astra_addon_footer_social_dynamic_css |
astra_ext_hb_button_dynamic_css | astra_addon_header_button_dynamic_css |
astra_hb_divider_dynamic_css | astra_addon_header_divider_dynamic_css |
astra_hb_lang_switcher_dynamic_css | astra_addon_header_lang_switcher_dynamic_css |
astra_ext_hb_menu_dynamic_css | astra_addon_header_menu_dynamic_css |
astra_header_social_dynamic_css | astra_addon_header_social_dynamic_css |