We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e32ce9d + 37646e3 commit 228a5c1Copy full SHA for 228a5c1
src/php/flat-files/handlers/php-snippet-handler.php
@@ -12,6 +12,7 @@ public function get_dir_name(): string {
12
}
13
14
public function wrap_code( string $code ): string {
15
- return "<?php\n\nif ( ! defined( 'ABSPATH' ) ) { return; }\n\n" . $code;
+ $output = "<?php\n\n" . apply_filters( 'code_snippets_php_snippet_file_code', $code );
16
+ return $output;
17
18
0 commit comments