diff --git a/composer.json b/composer.json index e0644423..45a1a07e 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": "^8.2", "alleyinteractive/composer-wordpress-autoloader": "^1.0", - "alleyinteractive/wp-type-extensions": "^4.0", + "alleyinteractive/wp-type-extensions": "^5.0", "mantle-framework/support": "^1.15" }, "require-dev": { diff --git a/plugin.php b/plugin.php index dedace6d..62c62e82 100644 --- a/plugin.php +++ b/plugin.php @@ -6,9 +6,9 @@ * Version: 0.0.0 * Author: author_name * Author URI: https://github.com/alleyinteractive/create-wordpress-plugin - * Requires at least: 6.5 + * Requires at least: 7.1 * Requires PHP: 8.2 - * Tested up to: 6.8 + * Tested up to: 7.1 * * Text Domain: create-wordpress-plugin * Domain Path: /languages/ diff --git a/src/meta.php b/src/meta.php index a01e4938..5e505cc3 100644 --- a/src/meta.php +++ b/src/meta.php @@ -15,12 +15,12 @@ * Reads the post meta definitions from config and registers them. */ function register_post_meta_from_defs(): void { - register_meta_from_file( dirname( __DIR__ ) . '/config/post-meta.json', 'post', false ); + register_meta_from_file( CREATE_WORDPRESS_PLUGIN_DIR . '/config/post-meta.json', 'post', false ); } /** * Reads the term meta definitions from config and registers them. */ function register_term_meta_from_defs(): void { - register_meta_from_file( dirname( __DIR__ ) . '/config/term-meta.json', 'term', false ); + register_meta_from_file( CREATE_WORDPRESS_PLUGIN_DIR . '/config/term-meta.json', 'term', false ); }