AnsPress_Notification_Hook::register_verbs()

Description #

Source #

File: addons/free/notification.php

	public static function register_verbs() {
		ap_register_notification_verb( 'new_answer', array(
			'label' => __( 'posted an answer on your question', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'new_comment', array(
			'ref_type' => 'comment',
			'label'    => __( 'commented on your %cpt%', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'vote_up', array(
			'ref_type' => 'post',
			'label'      => __( 'up voted your %cpt%', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'vote_down', array(
			'ref_type'   => 'post',
			'hide_actor' => true,
			'icon'       => 'apicon-thumb-down',
			'label'      => __( 'down voted your %cpt%', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'best_answer', array(
			'ref_type' => 'post',
			'label'      => __( 'selected your answer', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'new_points', array(
			'ref_type' => 'reputation',
			'label'    => __( 'You have earned %points% points', 'anspress-question-answer' ),
		) );

		ap_register_notification_verb( 'lost_points', array(
			'ref_type' => 'reputation',
			'label'    => __( 'You lose %points% points', 'anspress-question-answer' ),
		) );
	}

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