CAWeb_Theme_Update
in package CAWeb
CAWeb Theme Upgrader TagsTable of Contents
$caweb_this : CAWeb_Theme_Update
Member Variable$current_version : string
Member Variable$theme_name : string
Member Variable$transient_name : string
Member Variable$user : string
Member Variable
Initialize a new instance of the WordPress Auto-Update class
caweb_add_themes_to_update_notification() : mixed||string|int
Add the CAWeb Update to List of Available Updatedcaweb_check_update() : mixed||string|int
Alternative API for updating checking
Return Theme Changelog
This is hooked to admin_post_caweb_update_available
Used to hook to GitHub Webhooks Releases a payload is sent
Alternative upgrader_pre_download for the WordPress Updater
Filters whether to return the package.
Alternative upgrader_source_selection for the WordPress Updater
Filters the source file location for the upgrade package.
Remove theme actions after theme setup
Properties
$caweb_this : 51
$caweb_this
Member Variable
private static CAWeb_Theme_Update $caweb_this;
$current_version : 44
$current_version
Member Variable
protected string $current_version;
$theme_name : 37
$theme_name
Member Variable
protected string $theme_name;
$transient_name : 23
$transient_name
Member Variable
protected string $transient_name = 'caweb_update_themes';
$user : 30
$user
Member Variable
protected string $user;
Methods
__construct()
Initialize a new instance of the WordPress Auto-Update class
public __construct(WP_Theme $theme) : mixedTags Return values
mixed
caweb_add_themes_to_update_notification()
Add the CAWeb Update to List of Available Updated
public caweb_add_themes_to_update_notification(mixed||string|int $update_transient) : arrayTags Return values
array
caweb_check_update()
Alternative API for updating checking
public caweb_check_update(array|object $update_transient) : arrayTags Return values
array
caweb_get_theme_changelog()
Return Theme Changelog
public caweb_get_theme_changelog() : voidTags Return values
void
caweb_update_available()
This is hooked to admin_post_caweb_update_available
Used to hook to GitHub Webhooks Releases a payload is sent
public caweb_update_available() : voidTags Return values
void
caweb_upgrader_pre_download()
Alternative upgrader_pre_download for the WordPress Updater
Filters whether to return the package.
public caweb_upgrader_pre_download( $reply, $package, WP_Upgrader $upgrader) : boolTags Return values
bool
caweb_upgrader_source_selection()
Alternative upgrader_source_selection for the WordPress Updater
Filters the source file location for the upgrade package.
public caweb_upgrader_source_selection( $src, $rm_src, WP_Upgrader $upgr, mixed||string|int $options) : stringTags Return values
string
remove_theme_update_actions()
Remove theme actions after theme setup
public remove_theme_update_actions() : voidTags Return values
void