=== Simple Post Notes ===
Contributors: bracketspace, Kubitomakita
Tags: note, notes, post notes, info, post info
Requires at least: 6.5
Tested up to: 7.2
Stable tag: 1.9.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Adds simple notes to post, page and custom post type edit screen.
== Description ==
= Features =
* Simple note section on the post edit screen
* Sortable note column in posts table
* Bulk / Quick edit support
* Shortcode which will display the note on the front end
* Ability to change the "Note" title and add a help text for editors
= Our other plugins =
* [Notification - notification system for WordPress](https://bracketspace.com/notification/)
* [Advanced Cron Manager](https://wordpress.org/plugins/advanced-cron-manager/)
= Custom development =
BracketSpace - the company behind this plugin provides [custom WordPress plugin development services](https://bracketspace.com/custom-development/). We can create any custom plugin for you.
*Cover photo [designed by Freepik](http://www.freepik.com)*
== Frequently Asked Questions ==
= Is this plugin compatible with Gutenberg? =
Yes, it is!
= Custom post type are supported? =
Yes! Enable them on the plugin settings screen.
= Can I display my note on the front-end? =
Yes. Use the `[spnote]` shortcode. You can also pass optional parameter with post ID: `[spnote id="123"]` to display note from other post. By default it's grabbing current post.
= Can I disable display of admin column? =
Yes, by a simple filter.
Use:
`add_filter( 'spn/columns-display', '__return_false' );`
To disable SPN column for all post types
Or use
`add_filter( 'spn/columns-display/POST_TYPE_SLUG', '__return_false' );`
To disable SPN column only for specific post type
= Can I change the list of post types offered in the settings? =
Yes, by a simple filter. It receives an array of post type objects keyed by post type name:
`add_filter( 'spn/post-types', function ( $postTypes ) { unset( $postTypes['POST_TYPE_SLUG'] ); return $postTypes; } );`
= Can you create a plugin for me? =
Yes! We're offering a [custom plugin development](https://bracketspace.com/custom-development/) services. Feel free to contact us to find out how we can help you.
== Screenshots ==
1. Post Note area
2. Post Note in Posts table
3. Settings
== Changelog ==
= 1.9.0 =
* [Added] Compatibility with WordPress 7.2 and PHP 8.5 and 8.6.
* [Added] Setting for the height of the notes field.
* [Added] Post types registered by other plugins that are not public, but have their own admin screen, can now be selected in the settings.
* [Changed] Plugin requirements to WordPress >=6.5 and PHP >=7.4.
* [Changed] Post types in the plugin settings are now picked with simple checkboxes.
* [Changed] The [spnote] shortcode no longer shows notes of drafts, private or password-protected posts to visitors who cannot see those posts.
* [Changed] Plugin scripts load only on the post list screens where notes are used, instead of every admin page.
* [Fixed] Sorting by the notes column no longer hides posts without a note. Posts without a note are now always listed last.
* [Fixed] Notes can now be used with the Notification plugin - the notes box and column were hidden on its screens.
* [Fixed] PHP warnings appearing right after the plugin is activated, before the settings were saved for the first time.
* [Fixed] Line breaks in a note were lost when editing it with Quick Edit.
* [Fixed] The notes field was missing in Quick Edit and Bulk Edit for users who can edit a custom post type but not regular posts.
* [Fixed] Bulk Edit now shows a message when a note could not be saved, instead of silently skipping it.
* [Fixed] Security issue - users could add or change notes on posts they are not allowed to edit.
* [Fixed] Security issue - notes displayed by the shortcode and the plugin settings were not properly sanitized.
= 1.8.1 =
* [Fixed] Added null coalescing operators to prevent PHP warnings when settings array keys don't exist.
= 1.8.0 =
* [Changed] Removed local translation files in favor of GlotPress repository.
* [Changed] Coding standards to PSR-12.
* [Changed] Plugin requirements to WordPress >=6.0 and PHP >=7.0.
= 1.7.8 =
* [Fixed] Security issue - missing proper user data sanitization for notes placeholder and label.
* [Changed] Multiple escaping missing.
= 1.7.7 =
* [Fixed] Notes bulk edit which didn't save the note.
* [Fixed] PHP notice_placeholder not defined notice.
* [Fixed] Security patch.
= 1.7.6 =
* [Added] Sanitization for better security.
= 1.7.5 =
* [Fixed] PHP warning.
= 1.7.4 =
* [Fixed] Note column sorting.
= 1.7.3 =
* [Changed] The shortcode with note is now wrapped with a div.
= 1.7.2 =
* [Fixed] Bug with duplicated post notes for hierachical post types
* [Changed] Plugin author branding
= 1.7.1 =
* [Fixed] `Using $this when not in object context` error, thanks to Gero
= 1.7 =
* [Added] Ability to change the "Note" title and add a help text for editors
= 1.6 =
* [Added] Support for quick and bulk edit
* [Added] Shortcode [spnote]
= 1.5 =
* [Fixed] Bug with duplicated post notes for custom post type
* [Changed] Translation. Now it's managed via repository
= 1.4 =
* Added German translation thanks to Michael Köther
= 1.3 =
* Note column in the posts table is now sortable
= 1.2.2 =
* Added Spanish translation thanks to Alfonso Frachelle
= 1.2.1 =
* Added filter to prevent displaying post note column
= 1.1.0 =
* Added Note to admin column
= 1.0.0 =
* Release
== Upgrade Notice ==
= 1.0.0 =
Release