Skip to content

Releases: bernskioldmedia/wp-plugin-base

2.4.1

05 Oct 11:11
Compare
Choose a tag to compare

Fixed

  • Block scaffolding code did not export functions correctly.

2.4.0

05 Oct 11:04
Compare
Choose a tag to compare

Added

  • Integrated our block plugin support package into the plugin base for easier use and maintenance.
  • New forge make:block command to easily scaffold a new block.
  • New forge setup:block-build command to easily scaffold the block build process.
  • Abstract Job class for creating long-running background tasks.
  • Abstract Bulk_Action class for quickly scaffolding new bulk actions.
  • Abstract Multisite_Tab class for quicklt scaffolding a new tab in the network admin website edit view.

Fixed

  • AssetManager was not hooking the static implementation but the abstract.

2.3.1

05 Sep 08:36
Compare
Choose a tag to compare

Fixed

  • Issue where wakeup and clone methods would throw error on PHP8.

2.3.0

26 Jul 14:12
Compare
Choose a tag to compare

Added

  • New AssetManager class to simplify loading of assets.

Changed

  • BasePlugin is now a standard class that can be called, not just abstract.

2.2.0

24 Jul 08:48
Compare
Choose a tag to compare

Added

  • A new plugin slug variable, used to create automatic action hooks.
  • New lifecycle action hooks.

Changed

  • Updated base plugin to support loading of blocks via the updated Block API.

Fixed

  • Rest endpoint abstract would force a type that WordPress doesn't, causing an error.

2.1.0

17 Jul 15:39
Compare
Choose a tag to compare

Added

  • New bootable list to hook things on init faster.
  • New integration with our Block Plugin Support trait that will autoload the blocks if the trait is present.

Changed

  • Make logger abstract and with configurable paths.
  • Moved console dependency to dev.
  • Moved to minimum PHP 7.4 with typehinted code.

Fixed

  • Customizer stub has correct namespace and class name.
  • Loading of admin columns works properly.
  • Relaxed Symfony console requirements so that it plays nice with php scoper.

2.0.0

14 Mar 10:50
fac1072
Compare
Choose a tag to compare

Added

  • New forge CLI for easy scaffolding.
  • Scaffolding for separating field groups into own classes for better organization. Add them to a data store by adding the class to an array.
  • Scaffolding for customizer sections. Just add them to an array in the base plugin class to load.
  • Scaffolding for adding FacetWP facets. Just add them to an array in the base plugin class to load.

Changed

  • Renamed classes and folders to consistently use CamelCase.
  • Simplified loading of data stores and rest endpoints, now just add them to the respective arrays in the base plugin class. No trait or boot method needed.

Deprecated

  • The fields() method on data stores should no longer be used, instead replaced by loading field group classes via the $field_groups property.

Removed

  • Has_Data_Stores trait, which is no longer needed.
  • Has_Rest_Endpoints trait, which is no longer needed.
  • Queries_Interface interface, which was never used.

1.0.4

26 Sep 15:12
Compare
Choose a tag to compare

Added

  • Helper methods for getting ACF data for boolean, term ID and dates.

Changed

  • We now honor our dependency checker method in the constructor call.

Removed

  • In Data_Store_WP an action was hooked to bm_events_init. This has been removed.

Fixed

  • Spelling mistake where property $database_version was misspelt.
  • Textdomains were not loading properly, this is now fixed.
  • The datastore exception class was not named properly, causing it to fail.

1.0.3

16 Sep 11:57
Compare
Choose a tag to compare

Fixed

  • Adding routes with REST was forced to return an array, should not need to return anything.
  • REST endpoints calls a load function, but the load function wasn't present.

1.0.2

06 Jul 19:31
Compare
Choose a tag to compare

Fixed

  • An issue where abstract classes where not resolving the static values.