Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Forms_Admin_Bar::should_display()
Determine whether or an Edit Form node should be added to the admin bar.
Description Description
The user must be able to edit forms and be on a screen with a displayed form.
Return Return
(boolean)
Source Source
File: includes/forms/class-llms-forms-admin-bar.php
private function should_display() { $display = ( current_user_can( LLMS_Forms::instance()->get_capability() ) && $this->get_current_location() ); /** * Filters whether or not the "Edit Form" WP_Admin_Bar node is displayed * * @since 5.0.0 * * @param boolean $display Whether or not to display the node. */ return apply_filters( 'llms_should_display_wp_admin_bar_nodes_for_forms', $display ); }
Expand full source code Collapse full source code View on GitHub