gatherpressregistermapproviders

Fires when venue map providers are being registered.

Fires on init priority 0 — after all plugins have loaded but
before any default-priority init listener observes the
registry. Companion plugins should hook this (NOT plugins_loaded,
which is too early — the manager singleton may not yet exist)
and register their providers by calling
$registry->register( new My_Map_Provider() ). Core providers
(OSM) are already registered by this point.

Auto-generated Example

add_action(
   'gatherpress_register_map_providers',
    function( GatherPressManager $registry ) {
        // Your code here.
    }
);

Parameters

  • GatherPressManager $registry Provider registry.

Files

do_action( 'gatherpress_register_map_providers', $this )

← All Hooks