Skip to content

Commit

Permalink
Add fallback functions to prevent errors on WP
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHolbrook authored Jul 12, 2022
1 parent 3fe0a4f commit bd90215
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/zbp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 80000) {
exit(254);
}


if ( ! function_exists('add_action') ) {
function add_action() {}
}

if ( ! function_exists('plugin_dir_url' ) ) {
function plugin_dir_url() {}
}

$autoloadLocations = array(
getcwd() . '/vendor/autoload.php',
getcwd() . '/../../autoload.php',
Expand Down

0 comments on commit bd90215

Please sign in to comment.