| 开发者 | joynall |
|---|---|
| 更新时间 | 2026年5月20日 03:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
<?php do_action( 'aura_hfe_header' ); ?> — in header.php
<?php do_action( 'aura_hfe_footer' ); ?> — in footer.php
For Developers
Action hooks: aura_hfe_loaded, aura_hfe_activated, aura_hfe_deactivated, aura_hfe_meta_saved, aura_hfe_template_created
Filter hooks: aura_hfe_header_hook, aura_hfe_footer_hook, aura_hfe_resolved_template, aura_hfe_template_matches, aura_hfe_include_rule_options, aura_hfe_evaluate_include_rule, aura_hfe_sticky_offset, aura_hfe_render_post_id, aura_hfe_cpt_args, aura_hfe_active_templates_query
Add a custom display condition:
`add_filter( 'aura_hfe_include_rule_options', function( $opts ) {
$opts['woo_shop'] = __( 'WooCommerce Shop', 'your-domain' );
return $opts;
} );
add_filter( 'aura_hfe_evaluate_include_rule', function( $result, $rule, $pages ) {
if ( 'woo_shop' === $rule ) {
return function_exists( 'is_shop' ) && is_shop();
}
return $result;
}, 10, 3 );`
aura-header-footer-elementor folder to /wp-content/plugins/, or install directly via Plugins → Add New.do_action('aura_hfe_header') and do_action('aura_hfe_footer') to your theme for hook-based rendering.Use the aura_hfe_include_rule_options filter to add the label and aura_hfe_evaluate_include_rule to handle the logic. See the For Developers section above.
Yes. All strings use WordPress i18n functions with the aura-header-footer-elementor text domain, and a .pot file is included in the /languages folder.
The uninstall routine removes all Aura HFE template posts and the plugin version option. Your other WordPress content is never touched.
Yes. The plugin outputs templates via WordPress action hooks. Add do_action('aura_hfe_header') in your theme's header.php and do_action('aura_hfe_footer') in footer.php. You can change the hook names via the aura_hfe_header_hook and aura_hfe_footer_hook filters.
No. Elementor is a required dependency. The plugin will block activation and show a helpful message if Elementor is not installed or activated. Install the free Elementor plugin first, then activate Aura Header Footer for Elementor.
Yes. Create multiple header templates, each with different display conditions. The first matching active template is rendered per page.
No. The free Elementor plugin (v3.5.0+) is all you need. Elementor Pro widgets will work if you have it.