Function Reference: geodir_action_add_listing_page_title
Summary
Outputs the add listings page title with HTML wrappers of which most can be filtered.
Package
GeoDirectory
Change Log
Since: 1.0.0
Filters
‘geodir_page_title_class’ [Line: 2107]
‘geodir_page_title_header_class’ [Line: 2109]
‘geodir_add_listing_page_title_text’ [Line: 2111]
‘geodir_seo_page_title’ [Line: 2131]
Source File
geodir_action_add_listing_page_title() is located in geodirectory_template_actions.php [Line: 2102]
Source Code
function geodir_action_add_listing_page_title() { if (isset($_REQUEST['listing_type']) && $_REQUEST['listing_type'] != '') $listing_type = sanitize_text_field($_REQUEST['listing_type']); /** This action is documented in geodirectory_template_actions.php */ $class = apply_filters('geodir_page_title_class', 'entry-title fn'); /** This action is documented in geodirectory_template_actions.php */ $class_header = apply_filters('geodir_page_title_header_class', 'entry-header'); $title = apply_filters('geodir_add_listing_page_title_text', get_the_title()); if(geodir_is_page('add-listing')){ $gd_page = 'add-listing'; if(isset($_REQUEST['pid']) && $_REQUEST['pid'] != ''){ $title = (get_option('geodir_page_title_edit-listing')) ? get_option('geodir_page_title_edit-listing') : $title; }elseif(isset($listing_type)){ $title = (get_option('geodir_page_title_add-listing')) ? get_option('geodir_page_title_add-listing') : $title; } } /** * Filter page title to replace variables. * * @since 1.5.4 * @param string $title The page title including variables. * @param string $gd_page The GeoDirectory page type if any. */ $title = apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page); echo ''; } '; echo $title; echo '