public/wordpress/wp-content/plugins/wp-courseware/includes/functions/notices.php
/**
 * Add Notice.
 *
 * @since 4.3.0
 *
 * @param string $message The text to display in the notice.
 * @param string $notice_type Optional. The name of the notice type - either error, success or notice.
 */
Add Notice.

@param string $message The text to display in the notice.
@param string $notice_type Optional. The name of the notice type - either error, success or notice.
Add Notice . @param string $message The text to display in the notice . @param string $notice_type Optional . The name of the notice type - either error success or notice .
function wpcw_add_notice( $message, $notice_type = 'success' ) {
	if ( ! did_action( 'wpcw_init' ) ) {
		wpcw_doing_it_wrong( __FUNCTION__, __( 'This function should not be called before wpcw_init.', 'wp-courseware' ), '4.3.0' );
		return;
	}
	$notices = wpcw()->session->get( 'wpcw_notices', array() );
	$notices[ $notice_type ][] = apply_filters( 'wpcw_notices_add_' . $notice_type, $message );
	wpcw()->session->set( 'wpcw_notices', $notices );
}
function wpcw_add_notice ( $ message , $ notice_type = 'success' ) { if ( ! did_action ( 'wpcw_init' ) ) { wpcw_doing_it_wrong ( __FUNCTION__ , __ ( 'This function should not be called before wpcw_init.' , 'wp-courseware' ) , '4.3.0' ) ; return ; } $ notices = wpcw ( ) -> session -> get ( 'wpcw_notices' , array ( ) ) ; $ notices [ $ notice_type ] [ ] = apply_filters ( 'wpcw_notices_add_' . $ notice_type , $ message ) ; wpcw ( ) -> session -> set ( 'wpcw_notices' , $ notices ) ; }
Add Notice.
Add Notice .