makaihanta
Ответы в темах
Просмотр 5 ответов — с 1 по 5 (всего 5)
-
Форум: Плагины
Тема: Не видит плагиныА какие тогда права посоветуешь выдать директории?
Форум: Плагины
Тема: Не видит плагиныО. Повторно выдал права 777 (если кому надо будет: sudo chmod 777 -R /var/www) на директорию www и все заработало. Спасибо всем за помощь
Форум: Плагины
Тема: Не видит плагиныВидит. Предустановленные он видеть может
Форум: Плагины
Тема: Не видит плагиныда, да, нужно t. Уж извините, что на клавишу не дожал. Замена кирилицы на латиницу не помогла.
Это может быть связано с версией 7.2 у php?Форум: Плагины
Тема: Не видит плагиныкароч, вот код
/var/www/html/TestServer/wp-conten/plugins/footer-function/footer-function.php:
<?php /* Plugin Name: Функция Футера Description: Добавление текста в футер Version: 1.0.2 Author: 魔界ハンター Text Domain: FooterFunction */ /* Copyright ГОД ИМЯ_АВТОРА_ПЛАГИНА (email: E-MAIL_АВТОРА) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ //Подключение ff-functions.php require_once plugin_dir_path(__FILE__) . "includes/ff-functions.php";/var/www/html/TestServer/wp-conten/plugins/footer-function/includes/ff-function.php:
<?php add_action("wp_footer", "FooterFunction"); function FooterFunction() { echo "ここは何かのテキストが書いてある"; }
Просмотр 5 ответов — с 1 по 5 (всего 5)