fusion_builder_map()

03/12/2018
Copy to Clipboard

Add a registered shortcode as an element to the Fusion Builder elements library.

Attributes

$atts (array) (Required) - An array of element attributes which are used by Fusion Builder to register new element.

  • name (string) Name of element that is displayed in library
  • shortcode (string) Shortcode tag
  • icon (string) Element icon that is displayed in library
  • multi (boolean) Set to true for elements with nested structure. See: Add new multi (nested) element
  • preview (string) Absolute url to element preview template file
  • preview_id (string) Element preview template ID
  • hide_from_builder (boolean) Hide element from library
  • allow_generator (boolean) Enable Fusion Builder shortcode generator on this element's Visual editor window
  • generator_only (boolean) Element can be added from Fusion Builder generator only
  • params (array) Element settings. These settings are displayed on element settings window
  • admin_enqueue_js (string) Absolute url to javascript file, this file is loaded with the element on WordPress backend
  • admin_enqueue_css (string) Absolute url to css file, this file is loaded with the element on WordPress backend
  • front_enqueue_js (string) Element javascript file. Absolute url to javascript file, this file is loaded with the element on frontend
  • front_enqueue_css (string) Element css file. Absolute url to css file, this file is loaded with the element on frontend
  • on_save (string) Function name. Optional function that runs when saving element settings. Can be used to manipulate generated shortcode attributes content
  • custom_settings_view_js (string) Custom element settings backbone view. Absolute url to javascript file, this file is loaded with the element on WordPress backend
  • custom_settings_view_name (string) Custom element settings view name
  • custom_settings_template_file (string) Custom element settings template that will be loaded instead of default one. Absolute url to template file
  • add_edit_items (string) Sets a custom title/heading of the parent/child sortable area. If this is not used, it defaults to "Add/Edit Items"
  • sortable_items_info (string) Sets a custom description (the paragraph part under the heading) for the parent/child sortable area. If this is not used, it defaults to "Add or edit new items for this element. Drag and drop them into the desired order."

Parameters

An associative array of element settings that are displayed on element settings window. Each param_name must match shortcode attribute name.

  • type (string) Element setting type that is used on element settings page. See: Available setting types
  • heading (string) Element setting name that is displayed on element settings page
  • description (string) Element setting description text that is displayed on element settings page
  • param_name (string) Parameter name. Must match shortcode attribute name. Use element_content as param name for shortcode enclosed content
  • value (string | integer | bloolean | array ) Default setting value
  • group (string) Setting group for this setting
  • min (string | float | integer ) Minimum setting value. Used for range setting type only
  • max (string | float | integer ) Maximum setting value. Used for range setting type only
  • step (string | float | integer ) Setting range step. Used for range setting type only
Copy to Clipboard

Recent Posts

Recent Tweets

For privacy reasons Twitter needs your permission to be loaded. For more details, please see our Privacy Policy.
I Accept