LLMS_Notification_Controller_Student_Welcome::send_test( string $type, array $data = array() )

Send a test notification to the currently logged in users

Description Description

Extending classes should redefine this in order to properly setup the controller with post_id and user_id data.

Top ↑

Parameters Parameters


(string) (Required) Notification type [basic|email].


(array) (Optional) Array of test notification data as specified by $this->get_test_data().

Default value: array()

Top ↑

Return Return


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.student.welcome.php

	public function send_test( $type, $data = array() ) {

		if ( empty( $data['user_id'] ) ) {

		$this->user_id = $data['user_id'];
		$this->post_id = null;

		return parent::send_test( $type );


Top ↑

Changelog Changelog

Version Description
3.33.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.