Last active
July 17, 2025 18:34
-
-
Save afragen/4574e1ce54a621351e5eb18ac686f8f3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.3.0 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.9 | |
* Requires PHP: 7.4 | |
* Gist Plugin URI: https://gist.github.com/afragen/4574e1ce54a621351e5eb18ac686f8f3 | |
* Requires Plugins: glotpress | |
*/ | |
namespace Fragen\GU_GlotPress; | |
bootstrap(); | |
function bootstrap() { | |
add_filter( 'gp_home_title', __NAMESPACE__ . '\\return_title' ); | |
add_action( 'gp_after_notices', __NAMESPACE__ . '\\display_notice' ); | |
} | |
function return_title() { | |
return 'GlotPress for Git Updater'; | |
} | |
function display_notice() { | |
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