Warning: This function has been deprecated.

popmake_install_default_theme()

Install Default Theme


Description Description

Installs the default theme and updates the option.


Source Source

File: includes/functions-deprecated.php

function popmake_install_default_theme() {
	$defaults = PUM_Admin_Themes::defaults();

	$default_theme = @wp_insert_post( array(
		'post_title'     => __( 'Default Theme', 'popup-maker' ),
		'post_status'    => 'publish',
		'post_author'    => 1,
		'post_type'      => 'popup_theme',
		'comment_status' => 'closed',
		'meta_input'     => array(
			'_pum_built_in'        => 'default-theme',
			'_pum_default_theme'   => true,
			'popup_theme_settings' => $defaults,
			'popup_theme_data_version' => 3,
		),
	) );

	update_option( 'popmake_default_theme', $default_theme );
	pum_reset_assets();
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.8.0 This function has been deprecated.
1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.