-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathconfig.php
More file actions
22 lines (19 loc) · 864 Bytes
/
config.php
File metadata and controls
22 lines (19 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Convert to Blocks configuration
*
* @package convert-to-blocks
*/
$plugin_version = '1.3.4';
if ( file_exists( __DIR__ . '/.commit' ) ) {
// phpcs:disable
$plugin_version .= '-' . file_get_contents( __DIR__ . '/.commit' );
// phpcs:enable
}
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_PLUGIN', __DIR__ . '/plugin.php' );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_VERSION', $plugin_version );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_DIR', plugin_dir_path( __FILE__ ) );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_SLUG', 'convert-to-blocks' );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_DEFAULT_POST_TYPES', [ 'post', 'page' ] );
convert_to_blocks_define( 'CONVERT_TO_BLOCKS_PLUGIN_BASENAME', plugin_basename( __DIR__ . '/convert-to-blocks.php' ) );