Property | Type | Description | |
---|---|---|---|
$errors | |||
$logs | |||
$site_styles |
Property | Type | Description | |
---|---|---|---|
$envato_username | Theme author username, used in check for oauth. | ||
$oauth_script | Full url to server-script.php (available from https://gist.github.com/dtbaker ) | ||
$page_parent | string | The slug name for the parent menu | |
$page_slug | string | The slug name to refer to this menu | |
$page_url | string | Complete URL to Setup Wizard | |
$plugin_path | string | Relative plugin path | |
$plugin_url | string | Relative plugin url for this plugin folder, used when enquing scripts | |
$step | Current Step | ||
$steps | Steps for the setup wizard | ||
$tgmpa_instance | object | TGMPA instance storage | |
$tgmpa_menu_slug | string | TGMPA Menu slug | |
$tgmpa_url | string | TGMPA Menu url | |
$theme_name | Current theme name, used as namespace in actions. | ||
$version | string | The class version number. |
Method | Description | |
---|---|---|
__construct ( ) | A dummy constructor to prevent this class from being loaded more than once. | |
_content_install_settings ( ) | ||
_get_json ( $file ) | ||
admin_menus ( ) | Add admin menus/screens. | |
admin_redirects ( ) | ||
ajax_content ( ) | ||
ajax_plugins ( ) | ||
cleanFilePath ( string $path ) | Helper function Take a path and return it clean | |
cmpr_strlen ( $a, $b ) | return the difference in length between two strings | |
elementor_post ( $post_id = false ) | ||
enqueue_scripts ( ) | ||
envato_market_admin_init ( ) | ||
envato_market_http_request_args ( $args, $url ) : mixed | ||
envato_setup_color_style ( ) | ||
envato_setup_color_style_save ( ) | Save logo & design options | |
envato_setup_customize ( ) | ||
envato_setup_default_content ( ) | Page setup | |
envato_setup_default_plugins ( ) | Page setup | |
envato_setup_help_support ( ) | ||
envato_setup_introduction ( ) | Introduction step | |
envato_setup_introduction_save ( ) | Handles save button from welcome page. This is to perform tasks when the setup wizard has already been run. E.g. reset defaults | |
envato_setup_logo_design ( ) | Logo & Design | |
envato_setup_logo_design_save ( ) | Save logo & design options | |
envato_setup_ready ( ) | Final step | |
envato_setup_updates ( ) | Payments Step | |
envato_setup_updates_save ( ) | Payments Step save | |
error ( $message ) | ||
filter_options ( $options ) | ||
get_default_theme_style ( ) | Get the default style. Can be overriden by theme init scripts. | |
get_header_logo_width ( ) | Get the default style. Can be overriden by theme init scripts. | |
get_instance ( ) : Envato_Theme_Setup_Wizard | ||
get_logo_image ( ) | Get the default style. Can be overriden by theme init scripts. | |
get_next_step_link ( ) | ||
get_oauth_login_url ( $return ) | we can update the token there. | |
get_step_link ( $step ) | ||
get_tgmpa_instanse ( ) | Get configured TGMPA instance | |
init_actions ( ) | Setup the hooks, actions and filters. | |
init_globals ( ) | Setup the class globals. | |
init_wizard_steps ( ) : array | Setup steps. | |
is_possible_upgrade ( ) | We determine if the user already has theme content installed. This can happen if swapping from a previous theme or updated the current theme. We change the UI a bit when updating / swapping to a new theme. | |
is_submenu_page ( ) | ||
log ( $message ) | ||
render_oauth_login_description_callback ( ) | ||
render_oauth_login_fields_callback ( ) | ||
set_tgmpa_url ( ) | Update $tgmpa_menu_slug and $tgmpa_parent_slug from TGMPA instance | |
setup_wizard ( ) | Show the setup wizard | |
setup_wizard_content ( ) | Output the content for the current step | |
setup_wizard_footer ( ) | Setup Wizard Footer | |
setup_wizard_header ( ) | Setup Wizard Header | |
setup_wizard_steps ( ) | Output the steps | |
switch_theme ( ) | ||
tgmpa_load ( $status ) | ||
upgrader_post_install ( $return, $theme ) | After a theme update we clear the setup_complete option. This prompts the user to visit the update page again. | |
vc_post ( $post_id = false ) |
Method | Description | |
---|---|---|
_array_merge_recursive_distinct ( $array1, $array2 ) : mixed | ||
_cleanup_imported_ids ( ) | ||
_content_default_get ( ) | ||
_content_install_type ( ) | ||
_content_install_widgets ( ) | ||
_delay_post_process ( $post_type, $post_data ) | ||
_elementor_id_import ( &$item, $key ) | ||
_fetch_remote_file ( $url, $post ) | ||
_get_plugins ( ) | ||
_get_sql ( $file ) | ||
_handle_delayed_posts ( $last_delay = false ) | ||
_handle_post_orphans ( ) | ||
_imported_post_id ( $original_id = false, $new_id = false ) | ||
_imported_term_id ( $original_term_id, $new_term_id = false ) | ||
_manage_oauth_token ( $token ) | ||
_parse_gallery_shortcode_content ( $content ) | ||
_post_orphans ( $original_id = false, $missing_parent_id = false ) | ||
_process_post_data ( $post_type, $post_data, $delayed, $debug = false ) |
public __construct ( ) |
public static cleanFilePath ( string $path ) | ||
$path | string |
public cmpr_strlen ( $a, $b ) |
public envato_market_http_request_args ( $args, $url ) : mixed | ||
$args | ||
$url | ||
return | mixed | Filter the WordPress HTTP call args. We do this to find any queries that are using an expired token from an oAuth bounce login. Since these oAuth tokens only last 1 hour we have to hit up our server again for a refresh of that token before using it on the Envato API. Hacky, but only way to do it. |
public envato_setup_color_style_save ( ) |
public envato_setup_introduction_save ( ) |
public envato_setup_logo_design_save ( ) |
public get_default_theme_style ( ) |
public get_header_logo_width ( ) |
public static get_instance ( ) : Envato_Theme_Setup_Wizard | ||
return | Envato_Theme_Setup_Wizard |
public get_logo_image ( ) |
public get_oauth_login_url ( $return ) |
public is_possible_upgrade ( ) |
public render_oauth_login_description_callback ( ) |
public set_tgmpa_url ( ) |
public setup_wizard_content ( ) |
public upgrader_post_install ( $return, $theme ) |
protected $envato_username |
protected $oauth_script |
protected string $page_parent | ||
return | string |
protected string $page_slug | ||
return | string |
protected string $page_url | ||
return | string |
protected string $plugin_url | ||
return | string |
protected object $tgmpa_instance | ||
return | object |
protected $theme_name |