Added comment about plugins_loaded hook
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.6
|
||||
* Version: 1.0.7
|
||||
* Author: Dee Five
|
||||
* Author URI: https://design519.com/
|
||||
* License: GPL-2.0+
|
||||
@@ -56,7 +56,7 @@ add_action(
|
||||
<?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' ),
|
||||
esc_html__( 'Your installation of D5 Admin WP is working, %1$splease refer to this document%2$s for usage notes. (TODO: add link to wiki/KB)', 'd5-admin-wp' ),
|
||||
'<a href="' . esc_url( 'https://link.com/thing' ) . '" target="_blank" rel="noopener noreferrer">',
|
||||
'</a>'
|
||||
);
|
||||
@@ -101,6 +101,9 @@ function register_d5aw_scripts() {
|
||||
require 'plugin-update-checker-5.4/plugin-update-checker.php';
|
||||
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
|
||||
|
||||
|
||||
//Does tyhis need to be called within the plugins_loaded hook?
|
||||
|
||||
$myUpdateChecker = PucFactory::buildUpdateChecker(
|
||||
'http://24.57.69.148/d5-admin-wp.json',
|
||||
__FILE__, //Full path to the main plugin file or functions.php.
|
||||
|
||||
Reference in New Issue
Block a user