HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wp-recipe-maker/includes/admin/class-wprm-privacy.php
<?php
/**
 * Responsible for the privacy policy.
 *
 * @link       https://bootstrapped.ventures
 * @since      2.5.2
 *
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/includes/admin
 */

/**
 * Responsible for the privacy policy.
 *
 * @since      2.5.2
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/includes/admin
 * @author     Brecht Vandersmissen <brecht@bootstrapped.ventures>
 */
class WPRM_Privacy {

	/**
	 * Register actions and filters.
	 *
	 * @since    2.5.2
	 */
	public static function init() {
		add_action( 'admin_init', array( __CLASS__, 'privacy_policy' ) );
	}

	/**
	 * Add text to the privacy policy suggestions.
	 *
	 * @since    2.5.2
	 */
	public static function privacy_policy() {
		if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
			return;
		}

		ob_start();
		include( WPRM_DIR . 'templates/admin/privacy.php' );
		$content = ob_get_contents();
		ob_end_clean();

		wp_add_privacy_policy_content(
			'WP Recipe Maker',
			wp_kses_post( wpautop( $content, false ) )
		);
	}
}

WPRM_Privacy::init();