Fieldmanager
  • Package
  • Function
  • Tree
  • Todo

Packages

  • Fieldmanager
    • Context
    • Datasource
    • Field
    • Util
  • None

Exceptions

  • FM_Class_Not_Found_Exception
  • FM_Developer_Exception
  • FM_Duplicate_Submenu_Name_Exception
  • FM_Exception
  • FM_Submenu_Not_Initialized_Exception
  • FM_Validation_Exception

Functions

  • _fieldmanager_registry
  • _fm_add_submenus
  • _fm_submenu_render
  • fieldmanager_enqueue_scripts
  • fieldmanager_get_baseurl
  • fieldmanager_get_template
  • fieldmanager_load_class
  • fieldmanager_load_file
  • fieldmanager_set_baseurl
  • fm_add_script
  • fm_add_style
  • fm_calculate_context
  • fm_get_context
  • fm_match_context
  • fm_register_submenu_page
  • fm_sanitize_textarea
  • fm_trigger_context_action

Function fm_add_script

Enqueue a script with a closure, optionally localizing data to it.

Package: Fieldmanager
See: wp_enqueue_script() for detail about $handle, $deps, $ver, and $in_footer.
See: wp_localize_script() for detail about $data_object and $data.
See: FM_GLOBAL_ASSET_VERSION for detail about the fallback value of $ver.
See: fieldmanager_get_baseurl() for detail about the fallback value of $plugin_dir.
Located at fieldmanager.php

Parameters summary

string $handle Script name.
string $path The path to the file inside $plugin_dir.
array $deps = array() Script dependencies. Default empty array.
string|boolean $ver = false Script version. Default none.
boolean $in_footer = false Whether to render the script in the footer. Default false.
string $data_object = '' The $object_name in wp_localize_script(). Default none.
array $data = array() The $l10n in wp_localize_script(). Default empty array.
string $plugin_dir = '' The base URL to the directory with the script. Default none.
boolean $admin = true Unused.
Fieldmanager API documentation generated by ApiGen 2.8.0