'Framework Name', 'Version' => 'Version', 'Author' => 'Author', 'TextDomain' => 'Text Domain', 'DomainPath' => 'Domain Path', ); $framework_data = get_file_data ( trailingslashit ( $plugin_path ) . 'plugin-fw/init.php', $default_headers ); $plugin_fw_main_file = trailingslashit ( $plugin_path ) . 'plugin-fw/yit-plugin.php'; if ( ! empty( $plugin_fw_data ) ) { foreach ( $plugin_fw_data as $version => $path ) { if ( version_compare ( $version, $framework_data[ 'Version' ], '<' ) ) { $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file ); } } } else { $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file ); } } }