Interface for a submodule that registers or enqueues assets.
Description
Source
File: src/modules/assets-submodule-interface.php
interface Assets_Submodule_Interface { /** * Registers all assets the submodule provides. * * @since 1.0.0 * * @param Assets $assets The plugin assets instance. */ public function register_assets( $assets ); /** * Enqueues scripts and stylesheets on the form editing screen. * * @since 1.0.0 * * @param Assets $assets The plugin assets instance. */ public function enqueue_form_builder_assets( $assets ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Methods
- ajax_invite_member — Sends an email invitation to a member.
- bootstrap — Bootstraps the submodule by setting properties.
- can_access — Determines whether the current user can access a specific form or submission.
- enqueue_form_builder_assets — Enqueues scripts and stylesheets on the form editing screen.
- get_default_invitation_message — Returns the default message for an invitation email, including placeholders.
- get_default_invitation_subject — Returns the default subject for an invitation email, including placeholders.
- get_default_login_required_message — Returns the default message to display when the user is not logged in.
- get_default_not_selected_message — Returns the default message to display when the user has not been selected.
- get_default_reinvitation_message — Returns the default message for a reinvitation email, including placeholders.
- get_default_reinvitation_subject — Returns the default subject for a reinvitation email, including placeholders.
- get_meta_fields — Returns the available meta fields for the submodule.
- get_settings_fields — Returns the available settings fields for the submodule.
- get_settings_sections — Returns the available settings sections for the submodule.
- is_user_invited — Checks whether a user has been previously invited to a form.
- override_content_type — Gets the email content type.
- override_from_email — Gets the email from email.
- override_from_name — Gets the email from name.
- register_assets — Registers all assets the submodule provides.
- register_template_tag_handlers — Registers the template tag handler for member invitations.
- set_user_invited — Sets a user as invited to a form.