Hooks the ImageGenerator class to admin-ajax action

author etessore
version 1.0.0
package classes

 Methods

Sets the admin-ajax hooks

__construct(bool $priv, bool $nopriv) 

Parameters

$priv

bool

is the hook available for registered users?

$nopriv

bool

is the hook available for the non-registered users?

This method is called by the admin-ajax subsystem.

ajax_callback() 
Static

Prints the image.

Sets the admin-ajax hooks

init(bool $priv, bool $nopriv) 

Parameters

$priv

bool

is the hook available for registered users?

$nopriv

bool

is the hook available for the non-registered users?

 Properties

 

hook to WordPress only once

$is_hooked : bool