onetone_custom_shop_archive_title

Change the Shop archive page title.

Description

(string) onetone_custom_shop_archive_title( (string) $title ); 

Returns (string)

Parameters (1)

0. $title (string)
The title.

Usage

  1. if ( !function_exists( 'onetone_custom_shop_archive_title' ) ) { 
  2. require_once '/includes/theme-functions.php'; 
  3.  
  4. // The title. 
  5. $title = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_custom_shop_archive_title($title); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/theme-functions.php  
  1. function onetone_custom_shop_archive_title( $title ) { 
  2.  
  3. if ( function_exists('is_shop') && function_exists('woocommerce_page_title') && is_shop() ) { 
  4. return str_replace( __( 'Products', 'onetone' ), woocommerce_page_title(false), $title ); 
  5. return $title;