Preview_Modal implements Registerable, Premium_Service
Handle the Preview Modal output
Tags
Interfaces, Classes and Traits
- Registerable
- Premium_Service
Table of Contents
- add_to_document_table() : mixed
- Adds the preview modal output for each table rendered in html.
- add_to_single_document() : mixed
- Adds the preview modal to the single content.
- register() : mixed
- {@inheritdoc}
- get_modal_html() : string
- Gets the HTML for a preview modal.
Methods
add_to_document_table()
Adds the preview modal output for each table rendered in html.
public
add_to_document_table(string $result, string $output, mixed $posts_table) : mixed
Parameters
- $result : string
- $output : string
- $posts_table : mixed
Return values
mixed —add_to_single_document()
Adds the preview modal to the single content.
public
add_to_single_document() : mixed
Return values
mixed —register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —get_modal_html()
Gets the HTML for a preview modal.
private
get_modal_html(string $modal_id) : string
Parameters
- $modal_id : string