Skip to content

Commit b1a704d

Browse files
committed
Updated files to latest
1 parent 37a9e96 commit b1a704d

File tree

207 files changed

+28239
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+28239
-27
lines changed
174 KB
Loading
64.4 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
3+
"landingPage": "\/wp-admin\/post-new.php",
4+
"steps": [
5+
{
6+
"step": "login",
7+
"username": "admin",
8+
"password": "password"
9+
},
10+
{
11+
"step": "installPlugin",
12+
"pluginZipFile": {
13+
"resource": "wordpress.org\/plugins",
14+
"slug": "dynamic-month-year-into-posts"
15+
},
16+
"options": {
17+
"activate": true
18+
}
19+
}
20+
]
21+
}

.wordpress-org/tags/1.0.1/LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

.wordpress-org/tags/1.0.1/README.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
=== Plugin Name ===
2+
Contributors: gauravtiwari
3+
Donate link: https://gauravtiwari.org/donate/
4+
Tags: seo, year, automatic, add-on, hooks, dynamic-content, admin, shortcode
5+
Requires at least: 3.0.1
6+
Tested up to: 5.3.2
7+
Stable tag: 5.1
8+
License: GPLv2 or later
9+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10+
11+
Add current year by [year] and current month by [month] shortcodes anywhere, including content, title, meta title, excerpt and Rank Math Breadcrumbs.
12+
13+
== Description ==
14+
15+
Add current year by [year] and current month by [month] shortcodes anywhere, including content and title. Use this plugin to boost your site's SEO by using the variables anywhere. Supports RankMath and [year] works as a replacement to %currentyear%, [month] as a replacement to %currentmonth% already.
16+
17+
Supports even the Rank Math's breadcrumbs, custom meta titles, excerpt etc.
18+
19+
*How to use?*
20+
Just install the plugin (see Installation tab) and activate it. Add [year] to render current year and [month] to render current month automatically. As the months & years change, they get updated into the content and title automatically.
21+
22+
**Rankmath** SEO plugin is (very) recommended but not required.
23+
[More details](https://gauravtiwari.org/snippet/dynamic-month-year/) | [Support](https://wordpress.org/support/plugin/dynamic-month-year-into-posts/) | [More WordPress Plugins](https://gauravtiwari.org/code/)
24+
25+
== Installation ==
26+
27+
1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
28+
1. Activate the plugin through the 'Plugins' screen in WordPress
29+
1. There is no additional configuration required.
30+
31+
== Screenshots ==
32+
33+
1. Backend Editing
34+
2. Front end preview (without Rank Math)
35+
3. With RM Breadcrumb
36+
4. Admin Post list demo
37+
38+
39+
== Changelog ==
40+
41+
= 1.0.1 =
42+
* Fixed Name Conflicts
43+
44+
= 1.0.0 =
45+
* First version
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
/**
4+
* The plugin bootstrap file
5+
*
6+
* This file is read by WordPress to generate the plugin information in the plugin
7+
* admin area. This file also includes all of the dependencies used by the plugin,
8+
* registers the activation and deactivation functions, and defines a function
9+
* that starts the plugin.
10+
*
11+
* @link https://gauravtiwari.org
12+
* @since 1.0.0
13+
* @package Dynamic_Month_Year_Into_Posts
14+
*
15+
* @wordpress-plugin
16+
* Plugin Name: Dynamic Month & Year into Posts
17+
* Plugin URI: https://gauravtiwari.org/snippet/dynamic-month-year/
18+
* Description: Insert Dynamic Year and Month into content and meta using shortcodes.
19+
* Version: 1.0.1
20+
* Author: Gaurav Tiwari
21+
* Author URI: https://gauravtiwari.org
22+
* License: GPL-2.0+
23+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24+
* Text Domain: dynamic-month-year-into-posts
25+
*/
26+
27+
// If this file is called directly, abort.
28+
if ( ! defined( 'WPINC' ) ) {
29+
die;
30+
}
31+
32+
/**
33+
* Currently plugin version.
34+
* Start at version 1.0.0 and use SemVer - https://semver.org
35+
* Rename this for your plugin and update it as you release new versions.
36+
*/
37+
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.0.1' );
38+
add_shortcode( 'year' , 'rmd_current_year' );
39+
function rmd_current_year() {
40+
$year = date("Y");
41+
return "$year";
42+
}
43+
add_shortcode( 'month' , 'rmd_current_month' );
44+
function rmd_current_month() {
45+
$month = date("F");
46+
return "$month";
47+
}
48+
add_filter( 'the_title', 'do_shortcode' );
49+
add_filter( 'single_post_title', 'do_shortcode' );
50+
add_filter('the_excerpt', 'do_shortcode');
51+
add_filter( 'rank_math/frontend/title', function( $title ) {
52+
return do_shortcode( $title );
53+
});
54+
add_filter( 'rank_math/paper/auto_generated_description/apply_shortcode', '__return_true' );
55+
add_filter( 'rank_math/frontend/breadcrumb/html', 'do_shortcode' );
56+
// add_filter( 'rank_math/snippet/breadcrumb', 'do_shortcode' ); @TODO

.wordpress-org/tags/1.0.1/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php // Silence is golden
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
/**
4+
* Fired when the plugin is uninstalled.
5+
*
6+
* When populating this file, consider the following flow
7+
* of control:
8+
*
9+
* - This method should be static
10+
* - Check if the $_REQUEST content actually is the plugin name
11+
* - Run an admin referrer check to make sure it goes through authentication
12+
* - Verify the output of $_GET makes sense
13+
* - Repeat with other user roles. Best directly by using the links/query string parameters.
14+
* - Repeat things for multisite. Once for a single site in the network, once sitewide.
15+
*
16+
* This file may be updated more in future version of the Boilerplate; however, this is the
17+
* general skeleton and outline for how the file should work.
18+
*
19+
* For more information, see the following discussion:
20+
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
21+
*
22+
* @link https://gauravtiwari.org
23+
* @since 1.0.0
24+
*
25+
* @package Dynamic_Month_Year_Into_Posts
26+
*/
27+
28+
// If uninstall not called from WordPress, then exit.
29+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
30+
exit;
31+
}

0 commit comments

Comments
 (0)