All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Change return type of get_value() to mixed #37
- Move basic functionality to its own class inside src directory to simplify PSR-4 autoloading.
- Update Composer dependencies.
- Setup PHPCS rules.
- Change Storage::delete_post() parameter type hint.
- Fix issue with nonexistent attachments. Fixes the situation where the importer might fail with the image that doesn't exist.
- Enabled PHP 8.0 and PHP 8.1 usage #18
- Fix PHP 8 deprecation. #25
- Fixed the issue #23 If OOPI_IGNORE_SSL has been enabled and the certificate on the source site is invalid, the exif_imagetype() function cannot be used in the AttachmentImporter.
- Adds
parse_url( $url, PHP_URL_PATH )
to parse attachment importable's url.
- Filters
oopi_before_save_post_acf
andoopi_before_save_post_acf/type={field_type}
.
- Schedule log cleaner cronjob on plugin activation. The cronjob deletes rows from log table older than the threshold set.
- Fixed autoloading, added composer test + more #17
- Fixed inserting ACF data to attachments #19
- Fixed autoloading, added composer test + more #17
- A complete plugin code base overhaul. Refer to the example post and the README for changes in implementing importers with OOPI.
- Fixed post parent handling when using WordPress's post id.
- Fixed term handling in case of an already reserved slug.
- Added null check for term localization.
- Fixed the term translation and ACF repeater field example code.
- Add an option to ignore/skip SSL Certificate verification by defining
OOPI_IGNORE_SSL
as true.
- New typed classes for taxonomy term and language data.
- Geniem\Oopi\Term
- Geniem\Oopi\Language
- Localize newly created terms if language data is added for the Post object.
- Try to prevent the post name from getting a number suffix when translating posts with Polylang by updating the post data with the original post name after setting the language.
- Add a language agnostic term finding method to Storage class. Use it to find terms by slug.
- Allow language data to be set as an associative array or an object. Map data into a Geniem\Oopi\Language object.
- Simplify Oopi id handling in get_post_id_by_oopi_id().
- The
i18n
is now deprecated, but still functioning if set. The data is mapped into a Geniem\Oopi\Language object. - Taxonomy term data must contain an
oopi_id
for identification.
- Rename old hooks to better reflect the actual functionality:
wp_oopi_pre_post_save
->oopi_pre_insert_post
wp_oopi_after_post_save
->oopi_after_insert_post
- Polylang integration is run on the 'wp_loaded' hook. This prevents various warnings by allowing PLL to fully load itself before running integrations.
- New hooks for running code before and after saving an Oopi post.
- Rename all Post class hooks by removing the
wp_
prefix.
- Fixed WP insert post data filter removing when saving the Oopi object.
- Handle errors occurring within
wp_insert_post()
. - Fix text domains in various texts.
- Master id parsing in PLL locale saving.
- A filter to prevent Polylang from synchronizin Oopi identification data between translations.
- A method in the Storage class for getting the Oopi identificator key.
- The initial release.