ap_register_notification_verb( string $key, array $args = array() )

Description #

Register notification verb.

Parameters #

  • $key
    string (Required) verb key.
  • $args
    array (Optional) Verb arguments. Default value: array()

Source #

File: addons/notifications/functions.php

function ap_register_notification_verb( $key, $args = array() ) {
	global $ap_notification_verbs;

	$args = wp_parse_args(
		$args,
		array(
			'ref_type'   => 'post',
			'label'      => '',
			'hide_actor' => false,
			'icon'       => '',
		)
	);

	$ap_notification_verbs[ $key ] = $args;
}

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