RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

User Tools

Site Tools


Sidebar


Навигация

Линкшэринг

ALARM!

Добавить новую страницу

You are not allowed to add pages
web:wordpress

CMS: WordPress

Хомпэйдж, доки, лалала


Шаблоны

Хаки спамы куки

Плагины

Yoast

Разное

Запрет выполнения кода

Options -Indexes
php_flag engine 0
RemoveHandler .phtml .php .php3 .php4 .php5 .php6 .phps .cgi .exe .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .htm .html .wml
AddType application/x-httpd-php-source .phtml .php .php3 .php4 .php5 .php6 .phps .cgi .exe .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .htm .html .wml

Как перенести сайт WP с одного домена на другой?

Через Search Replace DB, github.

Мини-статистика ram/sql/time

<?php
echo "Статистика:" . get_num_queries() . "/ "; timer_stop(1);
echo "s/ ". round(memory_get_usage()/1024/1024, 2) . " MB ";
?>

Проверка работы почты

Файл в корневой директории WP

<?php
 
        // Set $to as the email you want to send the test to.
 
$to = "you@yourdomain.com" ;
 
       // No need to make changes below this line.
       // Email subject and body text.
 
$subject = ' wp_mail function test ' ;
$message = ' This is a test of the wp_mail function: wp_mail is working ' ;
$headers = '' ;
 
      // Load WP components, no themes.
 
define ('WP_USE_THEMES', false);
 
require('wp-load.php');
 
     // send test message using wp_mail function.
 
$sent_message = wp_mail( $to, $subject, $message, $headers);
 
     //display message based on the result.
 
if ( $sent_message ) {
 
    // The message was sent.
echo 'The test message was sent. Check your email inbox.' ;
 
} else {
 
    // The message was not sent.
echo 'The message was not sent!' ;
}

Discussion

Enter your comment. Wiki syntax is allowed:
 
web/wordpress.txt · Last modified: 2020/06/25 01:27 by dx