PHP Class Give_Donators_Gravatars, Give

ファイルを表示 Open project: wordimpress/give Class Usage Examples

Public Methods

Method 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

Method Description
setup_actions ( ) : void Setup the default hooks and actions

Method Details

__construct() public method

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

get_log_ids() public method

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
return array IDs if logs, false otherwise

get_payment_ids() public method

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

gravatars() public method

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

register_widget() public method

Register widget
Since: 1.0
public register_widget ( ) : void
return void

settings() public method

Settings
Since: 1.0
public settings ( array $settings ) : array
$settings array Gravatar settings.
return array Gravatar settings.

shortcode() public method

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

validate_gravatar() public method

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
return boolean If the gravatar exists or not