Astra_Cache_Base::get_post_timestamp( string $assets_info )
Returns the current Post Meta/ Option Timestamp.
Description
Parameters
- $assets_info
-
(string) (Required) Gets the assets path info.
Return
(array) $timestamp_data.
Source
File: classes/cache/class-astra-cache-base.php
public function get_post_timestamp( $assets_info ) { // Check if current page is a post/ archive page. false states that the current page is a post. if ( 'single' === $this->asset_query_var ) { $post_timestamp = get_post_meta( get_the_ID(), 'astra_style_timestamp_css', true ); } else { $post_timestamp = get_option( 'astra_get_dynamic_css' ); } $timestamp_data = $this->maybe_get_new_timestamp( $post_timestamp, $assets_info ); return $timestamp_data; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |