WooCommerce iZettle 1.x Code Reference
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference

Namespaces

  • Onlineforce
    • Woocommerce_Izettle

Classes

  • Woocommerce_Izettle
  • Woocommerce_Izettle_Activator
  • Woocommerce_Izettle_Admin
  • Woocommerce_Izettle_Admin_Actions
  • Woocommerce_Izettle_Admin_Ajax
  • Woocommerce_Izettle_Admin_Meta_Boxes
  • Woocommerce_Izettle_Admin_Notices
  • Woocommerce_Izettle_Background_Worker
  • Woocommerce_Izettle_Cron
  • Woocommerce_Izettle_Deactivator
  • Woocommerce_Izettle_I18n
  • Woocommerce_Izettle_Images
  • Woocommerce_Izettle_Inventory
  • Woocommerce_Izettle_Loader
  • Woocommerce_Izettle_Orders
  • Woocommerce_Izettle_Products
  • Woocommerce_Izettle_Settings

Functions

  • run_woocommerce_izettle

Class Woocommerce_Izettle_Admin

The admin-specific functionality of the plugin.

Defines the plugin name, version, and two examples hooks for how to enqueue the admin-specific stylesheet and JavaScript.

Namespace: Onlineforce\Woocommerce_Izettle
Package: Woocommerce\Izettle\admin
Author: Onlineforce Sweden AB support@onlineforce.net
Located at admin/class-woocommerce-izettle-admin.php

Methods summary

public
# __construct( string $plugin_name, string $version, object $admin_notice_handler )

Initialize the class and set its properties.

Initialize the class and set its properties.

Parameters

$plugin_name
The name of this plugin.
$version
The version of this plugin.
$admin_notice_handler
$plugin_class A reference to the main plugin class.

Since

1.0.0
public
# add_settings( )

Register the plugin settings.

Register the plugin settings.

Since

1.0.0
public
# enqueue_styles( )

Register the stylesheets for the admin area.

Register the stylesheets for the admin area.

Since

1.0.0
public
# enqueue_scripts( )

Register the JavaScript for the admin area.

Register the JavaScript for the admin area.

Since

1.0.0
public array
# plugin_action_links( array $links )

Add links to WordPress plugin overview page

Add links to WordPress plugin overview page

Parameters

$links
The links to override.

Returns

array
Links with our plugins settings links.

Since

1.0.0
public
# plugin_settings_page( )

Plugin settings page output function

Plugin settings page output function

Since

1.0.0
public
# plugin_settings_page_link( )

Add plugin settings page to WordPress "Settings" top-level menu item

Add plugin settings page to WordPress "Settings" top-level menu item

Since

1.0.0
public
# woocommerce_product_fields( )
public
# save_woocommerce_variation_fields( $variation_id, $i )
public array
# products_table_columns( array $columns = array() )

Add plugin columns to WooCommerce products table.

Add plugin columns to WooCommerce products table.

Parameters

$columns
The columns passed from filter.

Returns

array
Modified array of columns.

Since

1.0.0
public
# products_table_columns_output( $column_name, $post_id )

Output for the plugin columns on WooCommerce products table.

Output for the plugin columns on WooCommerce products table.

Since

1.0.0
public static
# hook_wc_get_stock( )
public static
# plugin_log( string $message = '' )

What rolls down stairs alone or in pairs, and over your neighbor's dog? What's great for a snack, And fits on your back? It's log, log, log.

What rolls down stairs alone or in pairs, and over your neighbor's dog? What's great for a snack, And fits on your back? It's log, log, log.

Lines will be formatted as: Current date and time - Input

Parameters

$message
The message to log.

Since

1.0.0
public static string
# get_plugin_log( )

Gets the plugin log.

Gets the plugin log.

Returns

string
The plugin log file contents.

Since

1.0.0
public static
# clear_plugin_log( )

Clears the plugin log.

Clears the plugin log.

Since

1.0.0

Void

public
# check_license( )

Helper method to check the plugins license key.

Helper method to check the plugins license key.

public
# product_variant_sku_field( $loop, $variation_data, $variation )
public
# save_product_variant_sku_field( $variation_id, $i )
public
# product_sku_field( )
public
# save_product_sku_field( $wc_product )

Properties summary

public Onlineforce\Woocommerce_Izettle\Woocommerce_Izettle_Settings $settings

A reference to the plugin settings / options class.

A reference to the plugin settings / options class.

Since

1.0.0
#
WooCommerce iZettle 1.x Code Reference API documentation generated by ApiGen