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
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. |