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_calculate_context

Calculate contextual information for the current request.

You can't use this function to determine whether or not a context "form" will be displayed, since it can be used anywhere. We would love to use get_current_screen(), but it's not available in some POST actions, and generally not available early enough in the init process.

This is a function to watch closely as WordPress changes, since it relies on paths and variables.

Package: Fieldmanager
Type: string|null A Fieldmanager context of "post", "quickedit", "term", "submenu", or "user", or null if one isn't found.
Type: string|null A "type" dependent on the context. For "post" and "quickedit", the post type. For "term", the taxonomy. For "submenu", the group name. For all others, null. }
Located at fieldmanager.php

Return value summary

array { Array of context information.
Fieldmanager API documentation generated by ApiGen 2.8.0