AR Model Viewer for WooCommerce

Ar_Model_Viewer_For_Woocommerce_Public

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
subpackage

Ar_Model_Viewer_For_Woocommerce/public

author

Manuel Ramirez Coronel ra_cm@outlook.com

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

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
since
1.0.0

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
since
1.0.0

        
On this page

Search results