Last active
August 26, 2024 17:07
-
-
Save raftaar1191/4782ed74a17a7ee8a37c59a8088efa57 to your computer and use it in GitHub Desktop.
Child theme Update via Github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'CHILD_THEME_FILES', __FILE__ ); | |
define( 'CHILD_THEME_NAME_SLUG', 'astra-child' ); | |
$stylesheet_directory = get_stylesheet_directory(); | |
/** | |
* Load the file that include the code of product single page | |
*/ | |
require_once( $stylesheet_directory . '/vendor/autoload.php' ); | |
/** | |
* For Plugin Update via Github | |
*/ | |
if ( class_exists( 'WPBoilerplate_Updater_Checker_Github' ) ) { | |
$package = array( | |
'repo' => 'https://github.com/acrosswp/ehandi-hello-elementor-child', | |
'file_path' => CHILD_THEME_FILES, | |
'name_slug' => CHILD_THEME_NAME_SLUG, | |
'release_branch' => 'main', | |
'release-assets' => true, | |
); | |
if ( defined( 'ACROSSWP_REPO_ACCESS_TOKEN' ) ) { | |
$package['token'] = ACROSSWP_REPO_ACCESS_TOKEN; | |
} | |
new WPBoilerplate_Updater_Checker_Github( $package ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment