All Projects → adamsilverstein → Wp Post Meta Revisions

adamsilverstein / Wp Post Meta Revisions

Licence: gpl-2.0
plugin for https://core.trac.wordpress.org/ticket/20564

Labels

Projects that are alternatives of or similar to Wp Post Meta Revisions

My Custom Functionality
A basic starter plugin to load assets like CSS and JS files in WordPress.
Stars: ✭ 70 (-9.09%)
Mutual labels:  wordpress
Germ
一款精美的 WordPress 主题,使用于我的中原驿站中,并保持持续更新。
Stars: ✭ 74 (-3.9%)
Mutual labels:  wordpress
Clover
WordPress block editor CLI
Stars: ✭ 76 (-1.3%)
Mutual labels:  wordpress
Wp Pro Quiz
Wordpress WP-Pro-Quiz Plugin (Official)
Stars: ✭ 72 (-6.49%)
Mutual labels:  wordpress
Passwords Evolved
WordPress password authentication for the modern era
Stars: ✭ 74 (-3.9%)
Mutual labels:  wordpress
Courselit
Start your own online teaching business. Features include course maker, students manager, payments and more.
Stars: ✭ 73 (-5.19%)
Mutual labels:  wordpress
Wp Missed Schedule
Find only missed schedule posts, every 15 minutes, and republish correctly 10 items each session. The Original plugin (only this) no longer available on WordPress.org for explicit author request! Compatible with WP 2.1+ to 4.9+ and 5.0-beta3 (100.000+ installs 300.000+ downloads 2016-04-13) Please: do not install unauthorized malware cloned forked!
Stars: ✭ 69 (-10.39%)
Mutual labels:  wordpress
Db Seeder
A database seeder app for MySQL
Stars: ✭ 77 (+0%)
Mutual labels:  wordpress
Plate
A theme support plugin for WordPlate
Stars: ✭ 74 (-3.9%)
Mutual labels:  wordpress
Theme
Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.
Stars: ✭ 1,197 (+1454.55%)
Mutual labels:  wordpress
Wordpress Plugin Construction
Tools 🧰 for developing and running WordPress websites
Stars: ✭ 73 (-5.19%)
Mutual labels:  wordpress
Autonomie
"Autonomie" is a highly semantic, responsive, accessible and search engine optimized WordPress Theme. It provides HTML5 templates refined with microformats, microformats v2 and microdata (Schema.org). "Autonomie" supports a lot of OpenWeb plugins and is fully IndieWeb compatible.
Stars: ✭ 73 (-5.19%)
Mutual labels:  wordpress
Cat
a slight blog theme.
Stars: ✭ 75 (-2.6%)
Mutual labels:  wordpress
Kirki
Extending the customizer
Stars: ✭ 1,175 (+1425.97%)
Mutual labels:  wordpress
Gutenberg Parser Rs
An experimental Rust parser for WordPress Gutenberg post format
Stars: ✭ 76 (-1.3%)
Mutual labels:  wordpress
Wpintel
Chrome extension designed for WordPress Vulnerability Scanning and information gathering!
Stars: ✭ 70 (-9.09%)
Mutual labels:  wordpress
Mainwp Child
The MainWP Child plugin is installed on the WordPress sites that you want to control from the MainWP Dashboard.
Stars: ✭ 74 (-3.9%)
Mutual labels:  wordpress
Markdownmonster
An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
Stars: ✭ 1,203 (+1462.34%)
Mutual labels:  wordpress
Wp Term Order
Sort taxonomy terms, your way
Stars: ✭ 76 (-1.3%)
Mutual labels:  wordpress
Ngx Wordpress
Angular WordPress Module ✨
Stars: ✭ 75 (-2.6%)
Mutual labels:  wordpress

Build Status

=== WP-Post-Meta-Revisions ===

Allow selected post meta keys to be tracked in revisions.

== Description ==

Important

Version 2.0.0 of this plugin introduces a streamlined storage format for revisioned meta that is not completely backwards compatible with previous versions of the plugin. Restoring revisions data from a previous version where array data was stored may not work as expected. If you need to be able to restore array data revisioned in previous versions, avoid upgrading or read the full issue to see how your data may be impacted: https://github.com/adamsilverstein/wp-post-meta-revisions/pull/56/.

This plugin implements a post meta revisioning feature as arrived at in https://core.trac.wordpress.org/ticket/20564.

The goal of releasing this code as a plugin is to allow as many people as possible to easily test the post meta revisioning feature, and also hopefully move towards inclusion of the feature into core, following the Features as Plugins model.

Further development of the code for this plugin will continue on its GitHub repository. Pull requests welcome!

To use this plugin, you must be running WordPress 4.1 or newer, two hooks were added in 4.1 that are required for this implementation.

To revision a post meta, you add its key via a filter:

function add_meta_keys_to_revision( $keys ) {
	$keys[] = 'meta-key-to-revision';
	return $keys;
}
add_filter( 'wp_post_revision_meta_keys', 'add_meta_keys_to_revision' );

Features:

  • Allows for a whitelisted array of 'revisioned' meta keys (which can change at any time)
  • A revision for the meta is stored on save (if the meta value has changed)
  • A meta revision save (if changed) is also triggered during auto-saves
  • Restoring a revision restores the revisioned meta field's values at that revision (including auto-saves)
  • Supports storing of multiple values for a single key (and restoring them)
  • Adds revisioned meta to the preview data via get_post_metadata
  • Includes unit tests demonstrating feature
  • Travis CI tests integrated with GitHub repository, props @mattheu
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].