Registers all assets the submodule provides.
Description
See also
Parameters
- $assets
-
(awsmug\Torro_Forms\Modules\Access_Controls\Assets) (Required) The plugin assets instance.
Source
File: src/modules/access-controls/members.php
public function register_assets( $assets ) { $assets->register_script( 'admin-member-invitations', 'assets/dist/js/admin-member-invitations.js', array( 'deps' => array( 'wp-util', 'jquery' ), 'in_footer' => true, 'localize_name' => 'torroMemberInvitations', 'localize_data' => array( 'ajaxPrefix' => $this->module->manager()->ajax()->get_prefix(), 'ajaxInviteMemberNonce' => $this->module->manager()->ajax()->get_nonce( 'invite_member' ), ), ) ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |