Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
pum_get_theme_v2_meta( null|int $theme_id = null )
Fetch themes v2 meta as a single array.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $theme_id
-
(Optional)
Default value: null
Return Return
(array|bool)
Source Source
File: includes/functions/themes/deprecated.php
function pum_get_theme_v2_meta( $theme_id = null ) { $theme = pum_get_theme( $theme_id ); if ( ! pum_is_theme( $theme ) ) { return false; } $defaults = pum_get_theme_v2_meta_defaults(); $values = array( 'overlay' => $theme->get_meta( 'popup_theme_overlay' ), 'container' => $theme->get_meta( 'popup_theme_container' ), 'title' => $theme->get_meta( 'popup_theme_title' ), 'content' => $theme->get_meta( 'popup_theme_content' ), 'close' => $theme->get_meta( 'popup_theme_close' ), ); foreach ( array_keys( $values ) as $array_key ) { $values[ $array_key ] = wp_parse_args( $values[ $array_key ], $defaults[ $array_key ] ); } return $values; }
Expand full source code Collapse full source code View on Trac