芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wpforms-lite/includes/admin/class-notices.php
notices ); } /** * Add notice to instance property. * * @since 1.3.9 * * @param string $message Message to display. * @param string $type Type of the notice (default: ''). */ public static function add( $message, $type = '' ) { _deprecated_function( __METHOD__, '1.7.2 of the WPForms plugin' ); $instance = self::getInstance(); $id = 'wpforms-notice-' . ( count( $instance->notices ) + 1 ); $type = ! empty( $type ) ? 'notice-' . $type : ''; $notice = sprintf( '
%s
', $type, $id, wpautop( $message ) ); $instance->notices[] = $notice; } /** * Add Info notice. * * @since 1.3.9 * * @param string $message Message to display. */ public static function info( $message ) { self::add( $message, 'info' ); } /** * Add Error notice. * * @since 1.3.9 * * @param string $message Message to display. */ public static function error( $message ) { self::add( $message, 'error' ); } /** * Add Success notice. * * @since 1.3.9 * * @param string $message Message to display. */ public static function success( $message ) { self::add( $message, 'success' ); } /** * Add Warning notice. * * @since 1.3.9 * * @param string $message Message to display. */ public static function warning( $message ) { self::add( $message, 'warning' ); } }