You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
661 B

<?php
namespace Elementor;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Settings_Validations {
/**
* @static
* @since 1.0.0
* @access public
*/
public static function html( $input ) {
return stripslashes( wp_filter_post_kses( addslashes( $input ) ) );
}
/**
* @static
* @since 1.0.0
* @access public
*/
public static function checkbox_list( $input ) {
if ( empty( $input ) ) {
$input = [];
}
return $input;
}
/**
* @static
* @since 1.4.8
* @access public
*/
public static function clear_cache( $input ) {
Plugin::$instance->posts_css_manager->clear_cache();
return $input;
}
}