Notifications::register_verbs()
Description #
Register notifications verbs.
Source #
File: addons/notifications/notifications.php
public 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',
// translators: %cpt% is AnsPress placeholder not gettext.
'label' => __( 'commented on your %cpt%', 'anspress-question-answer' ),
)
);
ap_register_notification_verb(
'vote_up',
array(
'ref_type' => 'post',
// translators: %cpt% is AnsPress placeholder not gettext.
'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',
// translators: %cpt% is AnsPress placeholder not gettext.
'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' ),
)
);
}
Expand full source code Collapse full source code View on GitHub: addons/notifications/notifications.php:156
Add your comment