public static function OutOfQueriesException() {
		if ( false === get_transient( 'geot_OutOfQueriesException' ) ) {
			set_transient( 'geot_OutOfQueriesException', true, 2 * 3600 );
			$message = sprintf( __( 'Your <a href="%s">GeotargetingWP account</a> have run out of queries. Please <a href="%s">add some</a> more to continue using this plugin.', 'geot' ), 'https://geotargetingwp.com/dashboard/credits', 'https://geotargetingwp.com/dashboard/credits' );
			$subject = __( 'Geotargeting plugin Error!', 'geot' );
			$headers = array( 'Content-Type: text/html; charset=UTF-8' );
			wp_mail( get_bloginfo( 'admin_email' ), $subject, $message, $headers );
		}
	}
public static function OutOfQueriesException() {
		if ( false === get_transient( 'geot_OutOfQueriesException' ) ) {
			set_transient( 'geot_OutOfQueriesException', true, 2 * 3600 );
			$message = sprintf( __( 'Your <a href="%s">GeotargetingWP account</a> have run out of queries. Please <a href="%s">add some</a> more to continue using this plugin.', 'geot' ), 'https://geotargetingwp.com/dashboard/credits', 'https://geotargetingwp.com/dashboard/credits' );
			$subject = __( 'Geotargeting plugin Error!', 'geot' );
			$headers = array( 'Content-Type: text/html; charset=UTF-8' );
			wp_mail( get_bloginfo( 'admin_email' ), $subject, $message, $headers );
		}
	}
public static function OutOfQueriesException ( ) { if ( false === get_transient ( 'geot_OutOfQueriesException' ) ) { set_transient ( 'geot_OutOfQueriesException' , true , 2 * 3600 ) ; $ message = sprintf ( __ ( 'Your <a href="%s">GeotargetingWP account</a> have run out of queries. Please <a href="%s">add some</a> more to continue using this plugin.' , 'geot' ) , 'https://geotargetingwp.com/dashboard/credits' , 'https://geotargetingwp.com/dashboard/credits' ) ; $ subject = __ ( 'Geotargeting plugin Error!' , 'geot' ) ; $ headers = array ( 'Content-Type: text/html; charset=UTF-8' ) ; wp_mail ( get_bloginfo ( 'admin_email' ) , $ subject , $ message , $ headers ) ; } }
Send email every two hours when user run out of queries in maxmind
Send email every two hours when user run out of queries in maxmind