Documentation
Documentation
Application
Table of Contents
Classes
- Graphic_Data_Create_SVG
- Register class that defines Create SVG functions
- Graphic_Data_GitHub_Updater
- GitHub Updater - Optimized Version
- Graphic_Data_Support
- The code for creating the "Graphic Data Support" menu item and page in the plugin.
- Graphic_Data_SVG_Validator
- Enhanced SVG validation for WordPress plugin
- Graphic_Data_Login
- Register class that has the functions used to modify the login WordPress scene
- Graphic_Data_Media_Manager
- Manages custom attachment fields in the WordPress Media Library.
- Graphic_Data_Page_Options
- Adds a required "Instance" section to the Page options of the Gutenberg page editor.
- Graphic_Data_Utility
- Utility functions used across the plugin
- Graphic_Data_Figure
- Handles the Figure custom post type for the Graphic Data plugin.
- Graphic_Data_Instance_Type
- Register class that defines the Instance Type functions
- Graphic_Data_Modal
- Manages the Modal custom post type and its admin interface.
- Graphic_Data_Scene
- Manages the Scene custom post type and its admin interface.
Functions
- graphic_data_add_figure_shortlink_rewrite() : array<string|int, mixed>
- Force figure shortlinks to the beginning of WordPress rewrite rules.
- graphic_data_add_figure_query_var() : array<string|int, mixed>
- Register the custom figure shortlink query variable.
- graphic_data_redirect_figure_shortlink() : void
- Redirect a figure shortlink to its actual location.
Functions
graphic_data_add_figure_shortlink_rewrite()
Force figure shortlinks to the beginning of WordPress rewrite rules.
graphic_data_add_figure_shortlink_rewrite(array<string|int, mixed> $rules) : array<string|int, mixed>
This prevents the generic:
([^/]+)/([^/]+)/?$
rule from capturing:
/f/127/
before the figure shortlink rule can process it.
Parameters
- $rules : array<string|int, mixed>
-
Existing WordPress rewrite rules.
Return values
array<string|int, mixed>graphic_data_add_figure_query_var()
Register the custom figure shortlink query variable.
graphic_data_add_figure_query_var(array<string|int, mixed> $vars) : array<string|int, mixed>
Parameters
- $vars : array<string|int, mixed>
-
Existing WordPress query variables.
Return values
array<string|int, mixed>graphic_data_redirect_figure_shortlink()
Redirect a figure shortlink to its actual location.
graphic_data_redirect_figure_shortlink() : void