AnsPress_Avatar_Hook::init()

Description #

Initialize the class.

Source #

File: addons/free/avatar.php

	public static function init() {
		ap_add_default_options([
			'avatar_font'   => 'Pacifico',
			'avatar_force'  => false,
		]);

		anspress()->add_action( 'ap_form_addon-free_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