-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsearch-replace-for-block-editor.php
More file actions
43 lines (37 loc) · 1.04 KB
/
search-replace-for-block-editor.php
File metadata and controls
43 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Plugin Name: Search and Replace for Block Editor
* Plugin URI: https://github.com/badasswp/search-replace-for-block-editor
* Description: Search and Replace text within the Block Editor.
* Version: 1.10.1
* Author: badasswp
* Author URI: https://github.com/badasswp
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: search-replace-for-block-editor
* Domain Path: /languages
*
* @package SearchReplaceForBlockEditor
*/
namespace badasswp\SearchReplaceForBlockEditor;
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'SRFBE_AUTOLOAD', __DIR__ . '/vendor/autoload.php' );
// Composer Check.
if ( ! file_exists( SRFBE_AUTOLOAD ) ) {
add_action(
'admin_notices',
function () {
vprintf(
/* translators: Plugin directory path. */
esc_html__( 'Fatal Error: Composer not setup in %s', 'search-replace-for-block-editor' ),
[ __DIR__ ]
);
}
);
return;
}
// Run Plugin.
require_once SRFBE_AUTOLOAD;
( \SearchReplaceForBlockEditor\Plugin::get_instance() )->run();