wp-content/plugins/fakerpress/inc/class-fp-admin.php
/**
	 * Creating messages in a standard way
	 *
	 * @param string  $html HTML or text of the message
	 * @param string  $type The type of the Message
	 * @param integer $priority The priority to show this message
	 *
	 * @since 0.1.2
	 *
	 */
Creating messages in a standard way
@param string  $html HTML or text of the message
@param string  $type The type of the Message
@param integer $priority The priority to show this message


Creating messages in a standard way @param string $html HTML or text of the message @param string $type The type of the Message @param integer $priority The priority to show this message
public static function add_message( $html, $type = 'success', $priority = 10 ) {
		$priority = absint( $priority );
		self::$messages[] = (object) array(
			'html' => wp_kses( wpautop( $html ), apply_filters( 'fakerpress.messages.allowed_html', array() ), array( 'http', 'https' ) ),
			'type' => esc_attr( $type ),
			'priority' => $priority === 0 ? $priority + 1 : $priority,
		);
		usort(
			self::$messages,
			function( $a, $b ){
				return $a->priority - $b->priority;
			}
		);
	}
public static function add_message ( $ html , $ type = 'success' , $ priority = 10 ) { $ priority = absint ( $ priority ) ; self :: $ messages [ ] = ( object ) array ( 'html' => wp_kses ( wpautop ( $ html ) , apply_filters ( 'fakerpress.messages.allowed_html' , array ( ) ) , array ( 'http' , 'https' ) ) , 'type' => esc_attr ( $ type ) , 'priority' => $ priority === 0 ? $ priority + 1 : $ priority , ) ; usort ( self :: $ messages , function ( $ a , $ b ) { return $ a -> priority - $ b -> priority ; } ) ; }
Creating messages in a standard way
 @param string  $html HTML or text of the message
 @param string  $type The type of the Message
 @param integer $priority The priority to show this message
Creating messages in a standard way @param string $html HTML or text of the message @param string $type The type of the Message @param integer $priority The priority to show this message
/**
		 * @filter fakerpress.messages.allowed_html
		 * @since 0.1.2
		 */