Skip to content

Instantly share code, notes, and snippets.

@raftaar1191
Last active August 26, 2024 17:07
Show Gist options
  • Save raftaar1191/4782ed74a17a7ee8a37c59a8088efa57 to your computer and use it in GitHub Desktop.
Save raftaar1191/4782ed74a17a7ee8a37c59a8088efa57 to your computer and use it in GitHub Desktop.
Child theme Update via Github
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