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_id( int $theme_id )
Return the theme id.
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
-
(Required)
Return Return
(int)
Source Source
File: includes/functions/themes/getters.php
function pum_get_theme_id( $theme_id = 0 ) { if ( ! empty( $theme_id ) && is_numeric( $theme_id ) ) { $_theme_id = $theme_id; } elseif ( is_object( pum()->current_theme ) && is_numeric( pum()->current_theme->ID ) ) { $_theme_id = pum()->current_theme->ID; } else { $_theme_id = 0; } return (int) apply_filters( 'pum_get_theme_id', (int) $_theme_id, $theme_id ); }
Expand full source code Collapse full source code View on Trac