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' );
}
Expand full source code Collapse full source code View on GitHub: addons/free/avatar.php:45
Add your comment