Packages

CAWeb

CAWebModuleExtension

ds

Reports

Errors

Markers

Indices

Files

CAWeb_Theme_Update

in package CAWeb

CAWeb Theme Upgrader Tags

Table 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

__construct() :

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 Updated

caweb_check_update() : mixed||string|int

Alternative API for updating checking

caweb_get_theme_changelog() :

Return Theme Changelog

caweb_update_available() :

This is hooked to admin_post_caweb_update_available Used to hook to GitHub Webhooks Releases a payload is sent

caweb_upgrader_pre_download() :

Alternative upgrader_pre_download for the WordPress Updater Filters whether to return the package.

caweb_upgrader_source_selection() :

Alternative upgrader_source_selection for the WordPress Updater Filters the source file location for the upgrade package.

remove_theme_update_actions() :

Remove theme actions after theme setup

Properties

$caweb_this Member Variable
private static CAWeb_Theme_Update $caweb_this;
$current_version Member Variable
protected string $current_version;
$theme_name Member Variable
protected string $theme_name;
$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) : mixed
Tags 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) : array
Tags Return values

array

caweb_check_update() Alternative API for updating checking
public caweb_check_update(array|object $update_transient) : array
Tags Return values

array

caweb_get_theme_changelog() Return Theme Changelog
public caweb_get_theme_changelog() : void
Tags 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() : void
Tags 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) : bool
Tags 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) : string
Tags Return values

string

remove_theme_update_actions() Remove theme actions after theme setup
public remove_theme_update_actions() : void
Tags Return values

void