Reference: settings keys, stored data and hooks the add-on listens to
Reign GeoDirectory Addon overviewPremiumGet Reign GeoDirectory Addon →
The exact names the add-on reads and writes, for developers and for support.
Setting keys
Section titled “Setting keys”Settings live in reign_options['geodirectory']. A value equal to its default is not stored, and a missing key counts as the default. Read them through Reign_Geodir_Settings; change the defaults with the reign_geodir_default_settings filter.
| Key | Screen label | Default | Used by |
|---|---|---|---|
places_tab |
Profile places > Show Places tab | on |
BuddyPress, BuddyBoss and PeepSo Places tab |
places_layout |
Profile places > Layout | default (or list) |
The layout the tab passes to [gd_listings] |
activity_new_place |
Activity > New place | on |
New-listing feed post |
activity_favourite |
Activity > Favourite | on |
Favourite feed post |
activity_review |
Activity > Review | on |
Review feed post |
notify_new_place |
Notifications > New place to all members | off |
New-listing notice, sent in batches |
notify_favourite |
Notifications > Favourite | on |
Notice to the listing owner |
notify_review |
Notifications > Review | on |
Notice to the listing owner and administrators |
legacy_tab_label, legacy_tab_slug |
none (set by the update from 2.4.0) | not set | Fed to the reign_geodir_places_tab_label and reign_geodir_places_tab_slug filters |
Every switch is read when the event happens, not when the page loads, so turning one off stops only its own item.
Other stored data
Section titled “Other stored data”| Name | Type | Holds |
|---|---|---|
reign_geodirectory_upgraded_2_5 |
option | Set once the update from 2.4.0 has run |
reign_geodirectory_upgrade_log |
option | The lines shown in the Update status card |
_reign_geodir_activity_sent |
post meta | The new-listing feed post was made |
_reign_geodir_notified |
post meta, comment meta | The new-listing or review notice was queued or sent once |
_reign_geodir_peepso_notified |
post meta, comment meta | The same, for PeepSo notices |
_reign_geodir_listing |
post meta on a PeepSo feed post | The listing the feed post is about |
reign_geodir_fav_relay |
user meta | Favourites made through GeoDirectory’s Fast AJAX, waiting to be replayed (the last 50 are kept) |
Nothing in this table is removed on uninstall.
Scheduled events
Section titled “Scheduled events”| Event | When it runs |
|---|---|
reign_geodir_new_place_notification_batch |
Notices for a new listing, 200 members per run, the next run 30 seconds later until every member is done |
reign_geodir_peepso_new_place_batch |
The same for PeepSo |
Both run even if you turn the New place notification switch off after a batch has started, so a started batch always finishes.
Community records
Section titled “Community records”| Where | Value |
|---|---|
| BuddyPress and BuddyBoss activity component | members, types new_location_post, place_mark_favorite, geodir_review_update |
| BuddyPress and BuddyBoss notification component | bp_geodir_loc, actions geodir_add_location_action, bp_geodir_marked_location_favorite_action, bp_geodir_marked_location_review_action |
| PeepSo profile segment | geodir-places |
| PeepSo member preferences | peepso_geodirectory_enable_add_location_activity, peepso_geodirectory_enable_add_favorite_activity, peepso_geodirectory_enable_add_location_review_activity |
| PeepSo feed post meta | is_peepso_geodirectory_activity, peepso_geodirectory_activity_type, peepso_geodirectory_activity_info |
These are the 2.4.0 names. Do not rename them in custom code.
Reign settings tab
Section titled “Reign settings tab”The tab is geodirectory_extender (the same as 2.4.0, so old links keep working): wp-admin/admin.php?page=reign-options&tab=geodirectory_extender. Saving needs the manage_options capability.
Hooks the add-on listens to
Section titled “Hooks the add-on listens to”| Hook | Plugin | What the add-on does |
|---|---|---|
geodir_add_fav_true, geodir_remove_fav_true |
GeoDirectory | Feed posts, notices and the Fast AJAX relay for favourites |
transition_post_status |
WordPress | Detects a newly published listing |
wp_insert_comment, transition_comment_status, delete_comment |
WordPress | Detects, approves and removes reviews |
before_delete_post, wp_trash_post |
WordPress | Removes feed posts and notices of a listing that is gone |
bp_setup_nav, admin_bar_menu, reign_bp_nav_icons |
BuddyPress, WordPress, Reign | Places tab, “My places” in the admin bar, the tab icon |
bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user, bb_notification_is_read_only |
BuddyPress, BuddyBoss | Registers and formats the notices |
peepso_navigation_profile, peepso_profile_segment_geodir-places, peepso_profile_preferences, peepso_activity_post_attachment, peepso_activity_content, peepso_profile_notification_link |
PeepSo | Tab, preferences, listing card and notices |
alter_reign_admin_tabs, render_theme_options_page_for_geodirectory_extender, reign_licensed_products |
Reign | Settings tab and licence entry |

