Documentation
Documentation
admin-frontend-edit-link.php
Authenticated edit links for frontend figures and modals.
Table of Contents
Functions
- graphic_data_hide_list_archive_link() : void
- Hide the archive toolbar link only on Graphic Data post list screens.
- graphic_data_admin_bar_preview() : void
- Launch the existing live preview from the post editor's toolbar.
- graphic_data_figure_edit_link_config() : void
- Expose the permission lookup only on signed-in frontend pages.
- graphic_data_modal_edit_link() : void
- Use the same access checks for modal edit links.
- graphic_data_figure_edit_link() : void
- Set the figure type explicitly rather than accepting AJAX hook arguments.
- graphic_data_send_post_edit_link() : void
- Return an edit URL only when both capabilities and instance access allow it.
Functions
graphic_data_hide_list_archive_link()
Hide the archive toolbar link only on Graphic Data post list screens.
graphic_data_hide_list_archive_link(WP_Admin_Bar $admin_bar) : void
Parameters
- $admin_bar : WP_Admin_Bar
-
The admin bar instance.
graphic_data_admin_bar_preview()
Launch the existing live preview from the post editor's toolbar.
graphic_data_admin_bar_preview(WP_Admin_Bar $admin_bar) : void
Parameters
- $admin_bar : WP_Admin_Bar
-
The admin bar instance.
graphic_data_figure_edit_link_config()
Expose the permission lookup only on signed-in frontend pages.
graphic_data_figure_edit_link_config() : void
graphic_data_modal_edit_link()
Use the same access checks for modal edit links.
graphic_data_modal_edit_link() : void
graphic_data_figure_edit_link()
Set the figure type explicitly rather than accepting AJAX hook arguments.
graphic_data_figure_edit_link() : void
graphic_data_send_post_edit_link()
Return an edit URL only when both capabilities and instance access allow it.
graphic_data_send_post_edit_link(string $post_type) : void
Parameters
- $post_type : string
-
The post type the requested post must have ('figure' or 'modal').