Deprecated

This method has been deprecated.

AnsPress_Ajax::hover_card()

Description #

Handle Ajax callback for user hover card

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/ajax-hooks.php

	public static function hover_card() {
		if ( ap_opt( 'disable_hover_card' ) ) {
			wp_die();
		}

		$id = (int) ap_sanitize_unslash( 'id', 'p' );
		$type = ap_sanitize_unslash( 'type', 'request', 'user' );

		if ( ! ap_verify_default_nonce() ) {
			wp_die();
		}

		/**
		 * AP Hover card actions.
		 *
		 * @param integer $id ID.
		 */
		do_action( 'ap_hover_card_' . $type, $id );
		wp_die();
	}

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