← All changes
|
includes/blocks/form-builder/block-attr-sanitizer/interfaces/sanitizer-base-interface.php
+14
-0
2.7.7
→
2.16.0
View file →
| @@ -1,0 +1,14 @@ | ||
| 1 | +<?php | |
| 2 | +namespace ABlocks\Blocks\FormBuilder\BlockAttrSanitizer\Interfaces; | |
| 3 | + | |
| 4 | +use WP_Post; | |
| 5 | + | |
| 6 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 7 | + exit; | |
| 8 | +} | |
| 9 | + | |
| 10 | +interface SanitizerBaseInterface { | |
| 11 | + | |
| 12 | + public static function init() : void; | |
| 13 | + public function sanitize( int $post_id, WP_Post $post, bool $update): void; | |
| 14 | +} | |