# category-posts/5.1.0/localizeddate.php

Category Posts Block, version 5.1.0. 31 lines.

- Page: https://pluginprobe.com/plugins/category-posts/5.1.0/code/localizeddate.php
- Raw: https://pluginprobe.com/plugins/category-posts/5.1.0/raw/localizeddate.php
- Modified: 2026-09-12T19:19:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/category-posts/5.1.0/code/localizeddate.php#L10-L20`.

```php
<?php
/**
 * Server side implementation of localized dates handling.
 *
 * @package categoryposts.
 *
 * @since 4.9
 */

namespace categoryPosts;

// Don't call the file directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Embed the front end JS for load more.
 *
 * @since 4.9
 */
function embed_date_scripts() {
	echo '<script>{';
	$suffix = 'min.js';
	if ( defined( 'WP_DEBUG' ) && WP_DEBUG === true ) {
		$suffix = 'js';
	}
	include __DIR__ . '/js/frontend/date.' . $suffix;
	echo '}</script>';
}

```
