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_default_theme_id()
Returns the default theme_id from global settings.
Description Description
Returns false if none set.
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
Return Return
(int|false)
Source Source
File: includes/functions/general.php
function pum_get_default_theme_id() { $default_theme_id = pum_get_option( 'default_theme_id' ); if ( false === $default_theme_id ) { $default_theme_id = get_option( 'popmake_default_theme' ); if ( false === $default_theme_id ) { $default_theme_id = pum_install_default_theme(); if ( pum_update_option( 'default_theme_id', $default_theme_id ) ) { // Self cleanup old version. delete_option( 'popmake_default_theme' ); } } } return absint( $default_theme_id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.8.0 | Introduced. |