-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/check dependencies #40
base: release/next-release
Are you sure you want to change the base?
Conversation
return; | ||
} | ||
|
||
register_activation_hook( __FILE__, 'plugin_activation' ); | ||
|
||
function plugin_activation() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please prefix the function name with "globalpayments_" to avoid name collision with other plugins.
$requiredExtensions = [ 'curl', 'dom', 'openssl', 'json', 'zlib', 'intl', 'mbstring', 'xml' ]; | ||
foreach ( $requiredExtensions as $ext ) { | ||
if ( ! extension_loaded( $ext ) ) { | ||
$notices = get_option( 'plugin_deferred_admin_notices', array() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please prefix the option name with "globalpayments_" instead of "plugin_" to avoid name collision with other plugins.
} | ||
|
||
add_action( 'admin_notices', 'plugin_admin_notices' ); | ||
function plugin_admin_notices() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please prefix the function name with "globalpayments_" to avoid name collision with other plugins.
No description provided.