Action Reference: geodir_main_content_open


This is used to add HTML opening wrappers to the main content of most pages including listings, author, search, home etc.


(string) (required) The page type. Values can be ‘listings-page’, ‘author-page’, ‘search-page’ or ‘home-page’.

Default: None
(string) (required) The id for the div. Usually ‘geodir-main-content’.

Default: None
(string) (required) The class for the div. Values can be ‘listings-page’, ‘author-page’, ‘search-page’ or ‘home-page’.

Default: None


‘geodir_main_content_close’ Where the oposing closing tag is added.

Change Log

Since: 1.0.0

Used by

geodirectory_template_actions.php: geodir_action_listings_content() [Line: 2035]

geodirectory_template_actions.php: geodir_action_author_content() [Line: 2980]

geodirectory_template_actions.php: geodir_action_search_content() [Line: 3217]

geodirectory_template_actions.php: geodir_action_home_content() [Line: 3380]

Source Code

    do_action('geodir_main_content_open', 'home-page', 'geodir-main-content', 'home-page');