-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
functions.php
42 lines (37 loc) · 1.17 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* External Functions.
*
* @since 1.8.0
* @package WP Last Modified Info
* @author Sayan Datta <[email protected]>
*/
if ( ! function_exists( 'get_the_last_modified_info' ) ) {
/**
* Call the republish function directly
*
* @since 1.8.0
* @param bool $escape Escape true|false
* @param bool $only_date Return only date true|false
*/
function get_the_last_modified_info( $escape = false, $only_date = false ) {
$template = new \Wplmi\Core\Frontend\TemplateTags( compact( 'escape', 'only_date' ) );
return $template->output();
}
}
/**
* The code that prints the template tag output
*/
if ( ! function_exists( 'the_last_modified_info' ) ) {
/**
* Call the republish function directly
*
* @since 1.8.0
* @param bool $escape Escape true|false
* @param bool $date Return only date true|false
*/
function the_last_modified_info( $escape = false, $date = false ) {
// displays/echos the last modified info.
echo get_the_last_modified_info( $escape, $date ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}