Когда я пытаюсь открыть файл плагина, он дает мне сообщение об ошибке «У вас недостаточно прав для доступа к этой странице». как получить доступ к моей странице!wordpress - нет разрешения для плагина страницы
вот мой код!
<?php
/*
Plugin Name: Plugin Display
Plugin URI: http://test.com
Description: Plugin for displaying info
Author: rohail
Version: 1.0
Author URI: http://test.com
*/
add_action('wp', 'prefix_setup_schedule');
/**
* On an early action hook, check if the hook is scheduled - if not, schedule it.
*/
function prefix_setup_schedule() {
if (!wp_next_scheduled('prefix_hourly_event')) {
wp_schedule_event(time(), 'hourly', 'prefix_hourly_event');
}
}
add_action('prefix_hourly_event', 'prefix_do_this_hourly');
/**
* On the scheduled action hook, run a function.
*/
function prefix_do_this_hourly() {
echo "test test";
}
?>