: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Functions for Theme Getters
* @copyright Copyright (c) 2023, Code Atlantic LLC
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
function pum_get_theme_id( $theme_id = 0 ) {
if ( ! empty( $theme_id ) && is_numeric( $theme_id ) ) {
} elseif ( is_object( pum()->current_theme ) && is_numeric( pum()->current_theme->ID ) ) {
$_theme_id = pum()->current_theme->ID;
return (int) apply_filters( 'pum_get_theme_id', (int) $_theme_id, $theme_id );
function pum_get_theme_generated_styles( $theme_id = 0 ) {
$theme = pum_get_theme( $theme_id );
if ( ! pum_is_theme_object( $theme ) ) {
return $theme->get_generated_styles();