Ar_Model_Viewer_For_Woocommerce_Widget
extends Widget_Base
in package
The admin-specific functionality of the plugin.
Defines the plugin name, version, and two hooks to enqueue the admin-facing stylesheet and JavaScript. As you add hooks and methods, update this description.
Tags
Table of Contents
Methods
- get_categories() : array<string|int, mixed>
- Get widget categories.
- get_icon() : string
- Get widget icon.
- get_name() : string
- Get widget name.
- get_title() : string
- Get widget title.
- content_template() : void
- Render the widget template in the Elementor editor.
- get_all_posts() : array<string|int, mixed>
- Retrieves all posts of the 'ar_model' custom post type.
- register_controls() : void
- Register controls for the widget.
- render() : void
- Render the widget output in the front-end.
Methods
get_categories()
Get widget categories.
public
get_categories() : array<string|int, mixed>
Return values
array<string|int, mixed> —Widget categories.
get_icon()
Get widget icon.
public
get_icon() : string
Return values
string —Widget icon.
get_name()
Get widget name.
public
get_name() : string
Return values
string —Widget name.
get_title()
Get widget title.
public
get_title() : string
Return values
string —Widget title.
content_template()
Render the widget template in the Elementor editor.
protected
content_template() : void
Provides a live preview of the widget in the Elementor editor.
get_all_posts()
Retrieves all posts of the 'ar_model' custom post type.
protected
get_all_posts() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of post titles indexed by post ID.
register_controls()
Register controls for the widget.
protected
register_controls() : void
Adds input fields and other controls to the widget settings.
render()
Render the widget output in the front-end.
protected
render() : void
Generates the HTML output for the widget.