Astra_SureCart::update_the_title( string $title, int $post_id )
Support custom title & description support for archive.
Description
Parameters
- $title
-
(string) (Required) Default archive title.
- $post_id
-
(int) (Required) Post ID.
Return
(string)
Source
File: inc/compatibility/class-astra-surecart.php
public function update_the_title( $title, $post_id ) { if ( $this->shop_page_id !== $post_id ) { return $title; } $custom_title = astra_get_option( 'ast-dynamic-archive-' . $this->post_type . '-custom-title', '' ); $title = ! empty( $custom_title ) ? $custom_title : $title; return $title; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |