我已经创建了这个插件,我需要它来使用上传按钮从用户那里获取图像,然后用WordPress登录页面标识替换上传的图像,你能帮我吗?我一直在寻找与此相关的任何代码,但我失败了。
<?php
/*
* Plugin Name: New Logo
* Plugin URI:
* Description: New logo
* Author: Zahra Sharafi
* Version: 1.0.0
* Author URI: http://www.averta.net/
* license: GPLv2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: nw_logo
*/
// Exit if accessed directly
if (!defined('ABSPATH')) exit;
add_action('admin_menu','my_plugin_menu');
function my_plugin_menu()
{
add_options_page('Add New Logo', 'Add New Logo', 'manage_options', 'my- unique-identifier', 'my_plugin_options' );
}
function my_plugin_options()
{
echo '<div class="wrap">';
echo '<a href="http://www.google.com/" class="button">';
echo "Click Me";
echo '</a>';
echo '</div>';
}
?>
答案 0 :(得分:0)