This function’s access is marked private. This means it is not intended for use by other plugin or theme developers, only in this plugin itself. It is listed here for completeness.

Form_Edit_Page_Handler::enqueue_assets()

Enqueues assets to load on the page.

Description

Source

File: src/db-objects/forms/form-edit-page-handler.php

	private function enqueue_assets() {
		$this->form_manager->assets()->enqueue_script( 'admin-fixed-sidebar' );

		$this->form_manager->assets()->enqueue_script( 'admin-tooltip-descriptions' );
		$this->form_manager->assets()->enqueue_style( 'admin-tooltip-descriptions' );

		$this->form_manager->assets()->enqueue_script( 'admin-unload' );

		$this->form_manager->assets()->enqueue_script( 'admin-form-builder' );
		$this->form_manager->assets()->enqueue_style( 'admin-form-builder' );

		if ( ! did_action( "{$this->form_manager->get_prefix()}add_form_meta_content" ) ) {
			/** This action is documented in src/db-objects/forms/form-edit-page-handler.php */
			do_action( "{$this->form_manager->get_prefix()}add_form_meta_content", $this );
		}

		foreach ( $this->meta_boxes as $id => $args ) {
			$args['field_manager']->enqueue();
		}

		/**
		 * Fires after scripts and stylesheets for the form builder have been enqueued.
		 *
		 * @since 1.0.0
		 *
		 * @param Assets $assets The Assets API instance.
		 */
		do_action( "{$this->form_manager->get_prefix()}enqueue_form_builder_scripts", $this->form_manager->assets() );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.