Ar_Model_Viewer_For_Woocommerce_Public
in package
The public-facing functionality of the plugin.
Defines the plugin name, version, and two hooks to enqueue the public-facing stylesheet and JavaScript. As you add hooks and methods, update this description.
Tags
Table of Contents
Properties
- $plugin_name : string
- The ID of this plugin.
- $plugin_prefix : string
- The unique prefix of this plugin.
- $version : string
- The version of this plugin.
Methods
- __construct() : mixed
- Initialize the class and set its properties.
- ar_model_viewer_for_woocommerce_button() : void
- Outputs the HTML for the AR model viewer button.
- ar_model_viewer_for_woocommerce_get_model_and_settings() : mixed
- enqueue_scripts() : mixed
- Register the JavaScript for the public-facing side of the site.
- enqueue_styles() : mixed
- Register the stylesheets for the public-facing side of the site.
Properties
$plugin_name
The ID of this plugin.
private
string
$plugin_name
The ID of this plugin.
Tags
$plugin_prefix
The unique prefix of this plugin.
private
string
$plugin_prefix
The string used to uniquely prefix technical functions of this plugin.
Tags
$version
The version of this plugin.
private
string
$version
The current version of this plugin.
Tags
Methods
__construct()
Initialize the class and set its properties.
public
__construct(string $plugin_name, string $plugin_prefix, string $version) : mixed
Parameters
- $plugin_name : string
-
The name of the plugin.
- $plugin_prefix : string
-
The unique prefix of this plugin.
- $version : string
-
The version of this plugin.
Tags
ar_model_viewer_for_woocommerce_button()
Outputs the HTML for the AR model viewer button.
public
ar_model_viewer_for_woocommerce_button() : void
This function includes a PHP file that contains the HTML and possibly some embedded PHP logic for displaying a button. This button is used to trigger the AR model viewer functionality.
Tags
ar_model_viewer_for_woocommerce_get_model_and_settings()
public
ar_model_viewer_for_woocommerce_get_model_and_settings() : mixed
enqueue_scripts()
Register the JavaScript for the public-facing side of the site.
public
enqueue_scripts() : mixed
Tags
enqueue_styles()
Register the stylesheets for the public-facing side of the site.
public
enqueue_styles() : mixed