astra_get_dynamic_header_content( string $option )
Return the selected sections
Description
Parameters
- $option
-
(string) (Required) Custom content type. E.g. search, text-html etc.
Return
(array) Array of Custom contents.
Source
File: inc/markup-extras.php
function astra_get_dynamic_header_content( $option ) { $output = array(); $section = astra_get_option( $option ); switch ( $section ) { case 'search': $output[] = astra_get_search( $option ); break; case 'text-html': $output[] = astra_get_custom_html( $option . '-html' ); break; case 'widget': $output[] = astra_get_custom_widget( $option ); break; case 'button': $output[] = astra_get_custom_button( $option . '-button-text', $option . '-button-link-option', $option . '-button-style' ); break; default: $output[] = apply_filters( 'astra_get_dynamic_header_content', '', $option, $section ); break; } return apply_filters( 'astra_get_dynamic_header_content_final', $output ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |