Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Last active December 28, 2019 11:54
Show Gist options
  • Save 2ndkauboy/140116e47f2d6c8ae25b002592ac45eb to your computer and use it in GitHub Desktop.
Save 2ndkauboy/140116e47f2d6c8ae25b002592ac45eb to your computer and use it in GitHub Desktop.
<?php
/**
* Unique Title Checker Errors Only
*
* @package unique-title-checker
* @author Bernhard Kau
* @license GPLv3
*
* @wordpress-plugin
* Plugin Name: Unique Title Checker Errors Only
* Plugin URI: https://gist.github.com/2ndkauboy/140116e47f2d6c8ae25b002592ac45eb
* Description: Only show the error message for non-unique titles, but not success messages
* Version: 1.0.0
* Author: Bernhard Kau
* Author URI: http://kau-boys.de
* Text Domain: unique-title-checker
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0
*/
add_filter( 'unique_title_checker_only_unique_error', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment