This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Sync Media Dates | |
Description: Adds a button under the Media Library tab to sync the post date and post date GMT of media files to be the date the file was last modified. | |
Version: 1.0 | |
Author: XerShade | |
*/ | |
function sync_media_dates_page() { | |
add_media_page( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0-windows</TargetFramework> | |
<UseWindowsForms>true</UseWindowsForms> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
<BaseOutputPath>$(SolutionDir)bin\$(AssemblyName)</BaseOutputPath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$id": "1", | |
"$type": "XerShade.UnitTesting.Models.Person, XerShade.UnitTesting", | |
"FirstName": "John", | |
"LastName": "Doe", | |
"Age": 33 | |
} |