Last active
November 15, 2024 00:17
-
-
Save afragen/4574e1ce54a621351e5eb18ac686f8f3 to your computer and use it in GitHub Desktop.
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: GlotPress for Git Updater | |
* Plugin URI: https://gist.github.com/afragen/4574e1ce54a621351e5eb18ac686f8f3 | |
* Description: This plugin is used for site testing. | |
* Version: 0.2.0 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 7.1 | |
* Gist Plugin URI: https://gist.github.com/afragen/4574e1ce54a621351e5eb18ac686f8f3 | |
* Requires Plugins: glotpress | |
*/ | |
add_filter( | |
'gp_home_title', | |
function() { | |
return 'GlotPress for Git Updater'; | |
} | |
); | |
add_action( | |
'gp_after_notices', | |
function() { | |
printf( | |
'<div class="notice-info notice" style="text-align:center;"><p>' | |
/* translators: 1: email link */ | |
. esc_html__( 'If you wish to be a language validator, please register on the site and email with your user name and the language locale(s) at %s' ) | |
. '</p></div>', | |
'<a href="mailto:[email protected]?subject=Git Updater GlotPress Validator Request">Request to be a Validator</a>' | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment