$inline_location
$inline_location : array
Location found in geo_mashup_save_location shortcode.
A manager for post/page location user interfaces.
Singleton instantiated immediately.
get_instance(string $name) : \GeoMashupPostUIManager
Get the single instance of this class.
string | $name | The class name, this class by default. |
The instance.
init()
Initialize for use in relevant post editing requests.
init action called by WordPress.
enqueue_scripts()
Queue scripts if the post type is enabled.
Monitor for checking post type: http://core.trac.wordpress.org/ticket/14886
admin_menu()
Add a location meta box to the post editors.
admin_menu action called by Wordpress.
save_post(\id $post_id, object $post) : boolean|\WP_Error
When a post is saved, save any posted location for it.
save_post action called by WordPress.
\id | $post_id | |
object | $post |
content_save_pre( $content)
Extract inline save location shortcodes from post content before it is saved.
content_save_pre filter called by Wordpress.
$content |
media_meta( $content, $post)
Add AJAX uploaded KML to the location editor map.
media_meta filter called by WordPress.
$content | ||
$post |
admin_print_scripts( $not_used)
Add Browser-uploaded KML to the location editor map.
admin_print_scripts action called by WordPress.
$not_used |
upload_mimes( $mimes)
Add geo mime types to allowable uploads.
upload_mimes filter called by WordPress.
$mimes |
wp_handle_upload( $args)
If an upload is KML, put the URL in an option to be loaded in the response
wp_handle_upload filter called by WordPress.
$args |