wp-content/plugins/fakerpress/inc/class-fp-admin.php
/**
	 * Method triggered to add messages recorded in this request to the admin front-end
	 *
	 * @since 0.1.2
	 * @return null Actions do not return
	 */
Method triggered to add messages recorded in this request to the admin front-end
@since 0.1.2
@return null Actions do not return
Method triggered to add messages recorded in this request to the admin front - end @since 0 . 1 . 2 @return null Actions do not return
public function _action_admin_notices() {
		foreach ( self::$messages as $k => $message ) {
			$classes = array(
				'fakerpress-message',
				'notice',
			);
			if ( 0 === $k ) {
				$classes[] = 'first';
			}
			if ( $k + 1 === count( self::$messages ) ) {
				$classes[] = 'last';
			}
			switch ( $message->type ) {
				case 'error':
					$classes[] = 'fakerpress-message-error';
					break;
				case 'success':
					$classes[] = 'fakerpress-message-success';
					break;
				case 'warning':
					$classes[] = 'fakerpress-message-warning';
					break;
				default:
					break;
			}
			?>
				<div class="<?php echo wp_kses( implode( ' ', $classes ), array() ); ?>"><?php echo wp_kses( $message->html, apply_filters( 'fakerpress.messages.allowed_html', array() ), array( 'http', 'https' ) ); ?></div>
			<?php
		}
	}
public function _action_admin_notices ( ) { foreach ( self :: $ messages as $ k => $ message ) { $ classes = array ( 'fakerpress-message' , 'notice' , ) ; if ( 0 === $ k ) { $ classes [ ] = 'first' ; } if ( $ k + 1 === count ( self :: $ messages ) ) { $ classes [ ] = 'last' ; } switch ( $ message -> type ) { case 'error' : $ classes [ ] = 'fakerpress-message-error' ; break ; case 'success' : $ classes [ ] = 'fakerpress-message-success' ; break ; case 'warning' : $ classes [ ] = 'fakerpress-message-warning' ; break ; default : break ; } ?> <div class=" <?php echo wp_kses ( implode ( ' ' , $ classes ) , array ( ) ) ; ?> "> <?php echo wp_kses ( $ message -> html , apply_filters ( 'fakerpress.messages.allowed_html' , array ( ) ) , array ( 'http' , 'https' ) ) ; ?> </div>
			 <?php } }
Method triggered to add messages recorded in this request to the admin front-end
 @since 0.1.2
 @return null Actions do not return
Method triggered to add messages recorded in this request to the admin front - end @since 0 . 1 . 2 @return null Actions do not return
// Plugin class to give the styling // This is to use WordPress JS to move them above the h2