# imagify/2.2.9/inc/deprecated/classes/class-imagify-notices-deprecated.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 2.2.9. 30 lines.

- Page: https://pluginprobe.com/plugins/imagify/2.2.9/code/inc/deprecated/classes/class-imagify-notices-deprecated.php
- Raw: https://pluginprobe.com/plugins/imagify/2.2.9/raw/inc/deprecated/classes/class-imagify-notices-deprecated.php
- Modified: 2019-05-06T14:27:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/2.2.9/code/inc/deprecated/classes/class-imagify-notices-deprecated.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

/**
 * Class for deprecated methods from Imagify_Notices.
 *
 * @since  1.7
 * @author Grégory Viguier
 * @deprecated
 */
class Imagify_Notices_Deprecated {

	/**
	 * Include the view file.
	 *
	 * @since  1.6.10 In Imagify_Notices
	 * @since  1.7 Deprecated
	 * @author Grégory Viguier
	 * @deprecated
	 *
	 * @param string $view The view ID.
	 * @param mixed  $data Some data to pass to the view.
	 */
	public function render_view( $view, $data = array() ) {
		_deprecated_function( get_class( $this ) . '::' . __FUNCTION__ . '()', '1.7', 'Imagify_Views::get_instance()->print_template( \'notice-\' . $view, $data )' );

		Imagify_Views::get_instance()->print_template( 'notice-' . $view, $data );
	}
}

```
