Added Admin notice
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* Plugin Name: D5 Admin WP
|
||||
* Plugin URI: TODO: Git link
|
||||
* Description: Common admin functions
|
||||
* Version: 1.0.5
|
||||
* Version: 1.0.6
|
||||
* Author: Dee Five
|
||||
* Author URI: https://design519.com/
|
||||
* License: GPL-2.0+
|
||||
@@ -44,6 +44,32 @@ if ( ! defined( 'D5AW_PLUGIN_URL' ) )
|
||||
//require_once( 'inc/functions.php' );
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action(
|
||||
'admin_notices',
|
||||
function() {
|
||||
?>
|
||||
<div class="notice notice-error">
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: is a link to a support document. 2: closing link */
|
||||
esc_html__( 'Your installation of D5 Admin WP is working, %1$splease refer to this document%2$s to set up your development environment.', 'd5-admin-wp' ),
|
||||
'<a href="' . esc_url( 'https://link.com/thing' ) . '" target="_blank" rel="noopener noreferrer">',
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
// Styles and Scripts
|
||||
function register_d5aw_scripts() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user