PHP Class Give_Donators_Gravatars, Give

Afficher le fichier Open project: wordimpress/give Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) : void Class Constructor
get_log_ids ( integer $form_id = '' ) : array Get an array of all the log IDs using the Give Logging Class
get_payment_ids ( integer $form_id = '' ) : mixed Get payment ID
gravatars ( integer $form_id = false, string $title = '' ) : string Gravatars
register_widget ( ) : void Register widget
settings ( array $settings ) : array Settings
shortcode ( array $atts, string $content = null ) : string Shortcode
validate_gravatar ( integer | string | object $id_or_email ) : boolean Utility function to check if a gravatar exists for a given email or id

Private Methods

Méthode Description
setup_actions ( ) : void Setup the default hooks and actions

Method Details

__construct() public méthode

Set up the Give Donators Gravatars Class.
Since: 1.0
public __construct ( ) : void
Résultat void

get_log_ids() public méthode

Get an array of all the log IDs using the Give Logging Class
Since: 1.0
public get_log_ids ( integer $form_id = '' ) : array
$form_id integer Donation form id
Résultat array IDs if logs, false otherwise

get_payment_ids() public méthode

Get payment ID
Since: 1.0
public get_payment_ids ( integer $form_id = '' ) : mixed
$form_id integer Donation form id
Résultat mixed

gravatars() public méthode

Gravatars
Since: 1.0
public gravatars ( integer $form_id = false, string $title = '' ) : string
$form_id integer Donation form id.
$title string Donators gravatars title.
Résultat string

register_widget() public méthode

Register widget
Since: 1.0
public register_widget ( ) : void
Résultat void

settings() public méthode

Settings
Since: 1.0
public settings ( array $settings ) : array
$settings array Gravatar settings.
Résultat array Gravatar settings.

shortcode() public méthode

Shortcode
Since: 1.0
public shortcode ( array $atts, string $content = null ) : string
$atts array Shortcode attribures.
$content string Shortcode content.
Résultat string

validate_gravatar() public méthode

Utility function to check if a gravatar exists for a given email or id
Since: 1.0
public validate_gravatar ( integer | string | object $id_or_email ) : boolean
$id_or_email integer | string | object A user ID, email address, or comment object
Résultat boolean If the gravatar exists or not