Action Reference: geodir_main_content_open

Summary

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

Parameters

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

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

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

Default: None

See

‘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');