Skip to content

Commit

Permalink
bump version to 0.3.0 and fix php @since tags
Browse files Browse the repository at this point in the history
  • Loading branch information
anteprimorac committed Nov 28, 2023
1 parent 560ae6e commit 90ab598
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 34 deletions.
2 changes: 1 addition & 1 deletion medusa-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medusa-plugin-wordpress",
"version": "0.2.0",
"version": "0.3.0",
"description": "A Medusa plugin for WordPress integration. It enables you to use WordPress as a headless CMS or as a storefront for your Medusa shop.",
"keywords": [
"medusa",
Expand Down
10 changes: 5 additions & 5 deletions wordpress-plugin/medusawp.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @package MedusaWP
* @link https://github.com/Agilo/medusawp
* @since 1.0.0
* @since 0.1.0
* @author Agilo
* @copyright 2023 Agilo
* @license MIT
Expand All @@ -19,7 +19,7 @@
* Plugin Name: MedusaWP
* Plugin URI: https://github.com/Agilo/medusawp
* Description: Enables you to use WordPress as a headless CMS or as a storefront for your Medusa shop.
* Version: 1.0.0
* Version: 0.3.0
* Requires at least: 5.6
* Requires PHP: 7.4
* Author: Agilo
Expand Down Expand Up @@ -48,7 +48,7 @@
/**
* The code that runs during plugin activation.
*
* @since 1.0.0
* @since 0.1.0
* @return void
*/
function activate_medusawp() {
Expand All @@ -58,7 +58,7 @@ function activate_medusawp() {
/**
* The code that runs during plugin deactivation.
*
* @since 1.0.0
* @since 0.1.0
* @return void
*/
function deactivate_medusawp() {
Expand Down Expand Up @@ -93,7 +93,7 @@ function deactivate_medusawp() {
/**
* Begins execution of the plugin.
*
* @since 1.0.0
* @since 0.1.0
*/
function run_medusawp() {
$plugin = new Plugin();
Expand Down
1 change: 0 additions & 1 deletion wordpress-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "medusawp-admin",
"private": true,
"version": "0.1.0",
"description": "MedusaWP is a WordPress plugin that enables you to use WordPress as a headless CMS or as a storefront for your Medusa shop.",
"keywords": [
"medusa",
Expand Down
10 changes: 5 additions & 5 deletions wordpress-plugin/public/class-medusawp-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MedusaWP_Public {
/**
* The ID of this plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access private
* @var string $plugin_name The ID of this plugin.
*/
Expand All @@ -23,7 +23,7 @@ class MedusaWP_Public {
/**
* The version of this plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access private
* @var string $version The current version of this plugin.
*/
Expand All @@ -32,7 +32,7 @@ class MedusaWP_Public {
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @since 0.1.0
* @param string $plugin_name The name of the plugin.
* @param string $version The version of this plugin.
*/
Expand All @@ -45,7 +45,7 @@ public function __construct( $plugin_name, $version ) {
/**
* Register the stylesheets for the public-facing side of the site.
*
* @since 1.0.0
* @since 0.1.0
*/
public function enqueue_styles() {

Expand All @@ -67,7 +67,7 @@ public function enqueue_styles() {
/**
* Register the JavaScript for the public-facing side of the site.
*
* @since 1.0.0
* @since 0.1.0
*/
public function enqueue_scripts() {

Expand Down
8 changes: 4 additions & 4 deletions wordpress-plugin/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: medusa, wordpress, ecommerce, headless, storefront
Requires at least: 5.6
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 1.0.0
Stable tag: 0.3.0
License: MIT
License URI: https://github.com/Agilo/medusawp/blob/master/wordpress-plugin/LICENSE

Expand Down Expand Up @@ -158,11 +158,11 @@ npm run start
2. After you have logged into your WordPress site, navigate to the MedusaWP plugin settings page, which can be found in the WordPress admin menu.

3. Connect your Medusa e-commerce store and your WordPress instance. On the default MedusaWP plugin screen enter your Medusa shop URL and credentials - email and password and press "Connect" button.
> [!NOTE]
> [!NOTE]
> If necessary, you can always disconnect from your Medusa shop by opening a dropdown in the upper-right corner, pressing the "Disconnect" button, and confirming your decision.

4. When the connection with Medusa is established, sync your Medusa e-commerce data with WordPress by clicking the "Sync" button. You can also choose to import Medusa thumbnails into the WordPress Media Library directly with the data sync (this may slightly slow down your data sync process), or you can import thumbnails separately later using the "Import" button.
> [!NOTE]
> [!NOTE]
> It is possible to remove all your synced Medusa data from your WordPress site at any time using the "Remove" button. We recommend that you backup your data before proceeding with this action.

5. Once the data synchronization is complete, configure the default settings of the MedusaWP plugin to suit your needs. In the dropdown, you can select the default country, which will be used to automatically create a cart in the corresponding region when a customer lands on the site.
Expand Down Expand Up @@ -274,5 +274,5 @@ This project is licensed under the [MIT License](https://github.com/Agilo/medusa

== Credits ==

MedusaWP is developed and maintained by [AGILO](https://agilo.co/).
MedusaWP is developed and maintained by [AGILO](https://agilo.co/).
Huge thanks to [all contributors](https://github.com/Agilo/medusawp/graphs/contributors).
4 changes: 2 additions & 2 deletions wordpress-plugin/src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function get_medusawp_js_data() {
/**
* Register the JavaScript for the admin area.
*
* @since 1.0.0
* @since 0.1.0
*/
public function enqueue_scripts() {
if ( ! $this->is_settings_screen() ) {
Expand Down Expand Up @@ -172,7 +172,7 @@ function () {
/**
* Render admin page for MedusaWP > Settings
*
* @since 1.0.0
* @since 0.1.0
* @return void
*/
private function render_settings_screen() {
Expand Down
14 changes: 7 additions & 7 deletions wordpress-plugin/src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Loader {
/**
* The array of actions registered with WordPress.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var array $actions The actions registered with WordPress to fire when the plugin loads.
*/
Expand All @@ -21,7 +21,7 @@ class Loader {
/**
* The array of filters registered with WordPress.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var array $filters The filters registered with WordPress to fire when the plugin loads.
*/
Expand All @@ -30,7 +30,7 @@ class Loader {
/**
* Initialize the collections used to maintain the actions and filters.
*
* @since 1.0.0
* @since 0.1.0
*/
public function __construct() {

Expand All @@ -41,7 +41,7 @@ public function __construct() {
/**
* Add a new action to the collection to be registered with WordPress.
*
* @since 1.0.0
* @since 0.1.0
* @param string $hook The name of the WordPress action that is being registered.
* @param object $component A reference to the instance of the object on which the action is defined.
* @param string $callback The name of the function definition on the $component.
Expand All @@ -55,7 +55,7 @@ public function add_action( $hook, $component, $callback, $priority = 10, $accep
/**
* Add a new filter to the collection to be registered with WordPress.
*
* @since 1.0.0
* @since 0.1.0
* @param string $hook The name of the WordPress filter that is being registered.
* @param object $component A reference to the instance of the object on which the filter is defined.
* @param string $callback The name of the function definition on the $component.
Expand All @@ -70,7 +70,7 @@ public function add_filter( $hook, $component, $callback, $priority = 10, $accep
* A utility function that is used to register the actions and hooks into a single
* collection.
*
* @since 1.0.0
* @since 0.1.0
* @access private
* @param array $hooks The collection of hooks that is being registered (that is, actions or filters).
* @param string $hook The name of the WordPress filter that is being registered.
Expand All @@ -96,7 +96,7 @@ private function add( $hooks, $hook, $component, $callback, $priority, $accepted
/**
* Register the filters and actions with WordPress.
*
* @since 1.0.0
* @since 0.1.0
*/
public function run() {

Expand Down
18 changes: 9 additions & 9 deletions wordpress-plugin/src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Also maintains the unique identifier of this plugin as well as the current
* version of the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @package MedusaWP
*/

Expand All @@ -20,7 +20,7 @@
use MedusaWP\Loader;

define( 'MEDUSAWP_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
define( 'MEDUSAWP_VERSION', '1.0.0' );
define( 'MEDUSAWP_VERSION', '0.3.0' );
define( 'MEDUSAWP_REST_ROUTE_NAMESPACE', 'wp/v2/medusa' );
define( 'MEDUSAWP_REST_ADMIN_ROUTE_NAMESPACE', 'wp/v2/admin/medusa' );

Expand All @@ -42,7 +42,7 @@ class Plugin {
* The loader that's responsible for maintaining and registering all hooks that power
* the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var Loader $loader Maintains and registers all hooks for the plugin.
*/
Expand All @@ -51,7 +51,7 @@ class Plugin {
/**
* The unique identifier of this plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $plugin_name The string used to uniquely identify this plugin.
*/
Expand All @@ -72,7 +72,7 @@ public function __construct() {
* Create an instance of the loader which will be used to register the hooks
* with WordPress.
*
* @since 1.0.0
* @since 0.1.0
* @access private
*/
private function load_dependencies() {
Expand All @@ -85,7 +85,7 @@ private function load_dependencies() {
* Register all of the hooks related to the admin area functionality
* of the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access private
*/
private function define_hooks() {
Expand Down Expand Up @@ -154,7 +154,7 @@ function ( string $product_id, ?int $sync_timestamp = null ) {
/**
* Run the loader to execute all of the hooks with WordPress.
*
* @since 1.0.0
* @since 0.1.0
*/
public function run() {
$this->loader->run();
Expand All @@ -164,7 +164,7 @@ public function run() {
* The name of the plugin used to uniquely identify it within the context of
* WordPress and to define internationalization functionality.
*
* @since 1.0.0
* @since 0.1.0
* @return string The name of the plugin.
*/
public function get_plugin_name() {
Expand All @@ -174,7 +174,7 @@ public function get_plugin_name() {
/**
* The reference to the class that orchestrates the hooks with the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @return Loader Orchestrates the hooks of the plugin.
*/
public function get_loader() {
Expand Down

0 comments on commit 90ab598

Please sign in to comment.