Wordpress instalace

wget https://cs.wordpress.org/latest-cs_CZ.zip
unzip latest-cs_CZ.zip
mv wordpress/ web
rm latest-cs_CZ.zip

update via commandline

/var/www/wp core version
/var/www/wp core update
/var/www/wp plugin update --all
/var/www/wp theme update --all

plugins

GTM
/var/www/wp plugin install duracelltomi-google-tag-manager
FORMS
/var/www/wp plugin install contact-form-7
youtube-embed-plus
seriously-simple-podcasting
events-manager
tinymce-advanced - rozšíření možností editoru např. o tabulky
install smtp-mailer - odesílání přes smtp
install all-in-one-seo-pack - seo
install lazy-blocks - custom blocks

/var/www/wp plugin install wordpress-seo - install yoasts seo


WP code snippets and disable xml rpc
/var/www/wp plugin install insert-headers-and-footers
https://www.wpbeginner.com/plugins/how-to-disable-xml-rpc-in-wordpress/#aioseo-method-1-disabling-wordpress-xml-rpc-with-htaccess

find . -type f -exec chmod 664 {} +
find . -type d -exec chmod 775 {} +
chmod 660 wp-config.php

find . -type f -exec chmod 644 {} +
find . -type d -exec chmod 755 {} +
chmod 640 wp-config.php
chmod o-w wp-config.php

.htaccess
php_flag engine off


Order allow,deny
Deny from all


find . -name "*.php" -type f -delete

find . -name "*.php" -type f -print

Pokud se objeví chyba:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected wp-includes/class-wp-widget.php:163

vyřeší se ve class-wp-widget-factory.php
//$this->widgets[ $widget ] = new $widget();
$this->widgets[ $widget ] = new $widget( $widget, $widget );

Rate this FAQ

0 (0 Votes)