Avatar::__construct()

Description #

Initialize the class.

Changelog #

VersionDescription
unknownunknown
4.2.0Introduced.

Source #

File: addons/avatar/avatar.php

	protected function __construct() {
		ap_add_default_options(
			array(
				'avatar_font'  => 'Pacifico',
				'avatar_force' => false,
			)
		);

		anspress()->add_filter( 'ap_settings_menu_features_groups', __CLASS__, 'add_to_settings_page' );
		anspress()->add_action( 'ap_form_options_features_avatar', __CLASS__, 'option_form' );
		anspress()->add_filter( 'pre_get_avatar_data', __CLASS__, 'get_avatar', 1000, 3 );
		anspress()->add_action( 'wp_ajax_ap_clear_avatar_cache', __CLASS__, 'clear_avatar_cache' );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment