Plugin Activation hook function to check for Minimum PHP and WordPress versions

Description Description

Cannot use static:: in case php 5.2 is used.

Source Source

File: classes/Install.php

	public static function activation_check() {
		if ( self::meets_activation_requirements() ) {

		// Deactivate automatically due to insufficient PHP or WP Version.
		deactivate_plugins( basename( __FILE__ ) );

		$notice = self::get_activation_failure_notice();

		wp_die( "<p>$notice</p>", __( 'Plugin Activation Error', 'popup-maker' ), array(
			'response'  => 200,
			'back_link' => true,
		) );

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.