Documentation

Graphic_Data_Create_SVG
in package

Register class that defines Create SVG functions

Table of Contents

Methods

add_create_svg_menu()  : mixed
Function to add the "Create SVG" submenu under Tools
create_svg_page()  : void
Display the content of the Create SVG admin page.
enqueue_admin_svg_script()  : void
Enqueue the JavaScript and CSS files for Create SVG functionality.

Methods

add_create_svg_menu()

Function to add the "Create SVG" submenu under Tools

public add_create_svg_menu() : mixed
Tags
since
1.0.0

create_svg_page()

Display the content of the Create SVG admin page.

public create_svg_page() : void

Renders the form interface that allows users to configure and generate Graphic-Data-compliant SVG files. The form includes controls for setting the SVG title, toggling a text layer, specifying the number of clickable icons, and buttons to preview or download the generated SVG.

Tags
since
1.0.0

enqueue_admin_svg_script()

Enqueue the JavaScript and CSS files for Create SVG functionality.

public enqueue_admin_svg_script(string $hook) : void

Loads the admin-create-svg.js script which handles SVG generation, filename prompting, preview display, and file download functionality. Also loads the admin-create-svg.css for styling. Assets are only enqueued on the tools_page_create-svg admin page.

Parameters
$hook : string

The current admin page hook suffix.

Tags
since
1.0.0

        
On this page

Search results