WordPress 5.0 PHP 8 のエラー修正

WordPress 5.0 PHP8 のエラー修正wp-includes/script-loader.php Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/doc/www.mj-servis.cz/www/wp-includes/script-loader.php on line 706https://word…

wp-cli core update error

PHP Fatal error: Declaration of WP_CLI\Core\CoreUpgrader::download_package($package, $check_signatures = true) must be compatible with WP · Issue #182 · wp-cli/core-command · GitHub sudo -u apache wp core update --version=6.1.1 --force Upd…

W3 Total Cache fbclid gclid

ページキャッシュで fbclid (facebook click id) gclid (google click id) などのクエリストリングは無視し、クエリストリングなしのキャッシュを使用する。2.2.7〜 2.2.7 Enhancement: Page cache: Added query string exemptions https://wordpress.org/pl…

persistent object cache 永続オブジェクトキャッシュ

6.1.1 Site Health Status recommendedYou should use a persistent object cache PerformanceA persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content …

WPML WordPress 6.1

WordPress 6.1 introduces breaking changes To avoid breaking your site, you must update to WPML 4.5.13 and String Translation 3.2.3 before updating to WordPress 6.1.https://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/ W…

wordpress マルチサイト サイト削除 プラグイン削除

サイト削除 マルチサイトからサイト削除 If you delete the site with plugins active that had created database tables, then those tables are not cleaned out when you delete a site. They will remain as artifact tables. What I recommend is to ta…

wp-cli multisite マルチサイト

wp site list wp plugin list --url=<url> cron #!/bin/bash WP_PATH=/path/to/wordpress for URL in $(wp --path=$WP_PATH site list --field=url --deleted=0 --archived=0) do echo $(date "+[%Y-%m-%d %H:%M:%S]") "Run wp cron for $URL" wp --path=$WP_PATH</url>…

MailPoet Plugin

https://wordpress.org/support/topic/http-post-requests-every-20-40-seconds-from-mailpoet-cron/ 2021Newsletter task scheduler (cron)1. Visitors to your website (recommended) 2. MailPoet's own script. Doesn't work with these hosts. 3. Server…

WordPress プラグイン

register_uninstall_hook は何度も呼び出さないように! register_uninstall_hook は、上記の通りデータベースに値を更新するだけです。 何度も呼び出す必要はありません。 これは非常に多い間違いで、パフォーマンスを劣化させるデメリットにしかなりません…

メジャーアップデートの自動更新

https://make.wordpress.org/core/2020/11/24/core-major-versions-auto-updates-ui-changes-in-wordpress-5-6-correction/ WordPress5.6から、新規インストールされるサイトはコアアップデートも自動がデフォルト設定になりました。 もちろん、設定の切り替…

記事数をカウント

post_type 毎 SELECT post_type,count(*) FROM wp_posts GROUP BY post_type; wp-cli https://developer.wordpress.org/cli/commands/post/list/ wp post list --format=count wp post list --post_type=page --format=count wp cli - WordPress API - count…

キャッシュプラグイン

WP Fastest Cache WP Super Cache W3 Total Cache W3 Total Cache plugin w3tc - WordPress Tips キャッシュプラグインの比較検証!表示速度の改善におすすめなのは? - 略してブロ戦 cli www.wpfastestcache.comWP Super Cache はcliなし。別途用意が必要 h…

さくらレンタルサーバ WordPress

wp-cli はデフォルトでインストールされている。WordPressのインストール手順を知りたい | さくらのサポート情報クイックインストール機能 で入るプラグイン 2022/08/23 % wp cli version WP-CLI 2.5.0 % wp core version 6.0.1 % wp plugin list +---------…

WPML theme 作成

1) Automatically Adjust IDsWPML can hook to WordPress API functions, detect when specific items are loaded and adjust IDs so that the results are adjusted for the active language.https://wpml.org/documentation/support/creating-multilingual…

Contact Form 7 reCAPTCHA

reCAPTCHA API の現在の最新バージョンは v3 です。バージョン 5.1 以降の Contact Form 7 はこの reCAPTCHA v3 API を使用します。 ... reCAPTCHA v3 では CAPTCHA ウィジェット (reCAPTCHA v2 にあった「私はロボットではありません」のチェックボックス) …

WordPress Popular Posts WPP

SELECT ID FROM wp_posts WHERE guid RLIKE '/uploads/2022/07/xxx.jpg'; mysql> EXPLAIN SELECT ID FROM wp_posts WHERE guid RLIKE '/uploads/2022/07/xxx.jpg'; +----+-------------+----------+------+---------------+------+---------+------+-------+…

W3 Total Cache Custom folder

Custom folder for cache not working | WordPress.org define( 'W3TC_CACHE_DIR', '/tmp/cache' ); が動作しない。w3tc 2.2.1

W3 Total Cache Custom folder

Custom folder for cache not working | WordPress.org define( ‘W3TC_CACHE_DIR’, ‘/tmp/cache’ ); が動作しない。

WPML export / import

This thread is resolved. Here is a description of the problem and solution.Problem: How to import or export WPML dataSolution: WPML supports the WP All Import plugin for the import/export functionality and depending on the items you want t…

When I add a new user with a different email address, I get the error message: That username is currently reserved but may be available in a couple of days.For me, I removed the row from the database in the table wp_signups where user_logi…

WPML

https://wpml.org/documentation/https://wpml.org/documentation/getting-started-guide/https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/translator 設定してないとエラーhttps://wpml.org/forums/topi…

WordPress 多言語サイト作成

WordPress で多言語サイトを作成する - WordPress Codex 日本語版 https://wordpress.org/support/article/multilingual-wordpress/ 各言語1投稿 (1言語ごとに1記事ずつ投稿) 有料 WPML ( https://wpml.org/ja/ ) 無料 Polylang ( https://wordpress.org/plu…

404

How to optimize your website by managing 404 errors of static files from the server • WordPress Help Blog 2021Why Your Wordpress Site Is So Slow And A Handy Guide To Speeding Things Up

Search form spam 検索 スパム

【注意喚起】急増する他社サイトを利用するサイト内検索スパム内容と対策 - ブログ - 株式会社JADE 2023WordPress利用者は今すぐチェック!サイト内検索結果ページに『noindex』設定をしていないとスパム攻撃の対象となり危険です | インフォコネクト株式会…

XMLRPC

NginxTo block access to xmlrpc in nginx use the following configuration: location = /xmlrpc.php { deny all; return 404; }ApacheIf you have access to your main Apache configuration file, use the code below there. Alternatively, create a fil…

マルチサイト htaccess

Subdomain SubDomain ExampleWordPress 3.5+ # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR]…

InnoDBに変換

3.WordPressのテーブルをInnoDBに変換する あとはmysqlにログインし「ALTER TABLE テーブル名 engine=InnoDB;」を実行するだけです。 WordPressのDBをMyISAMからInnoDBに変更する | riscascape.net 2017 https://stackoverflow.com/questions/63767994/wordp…

Revision リビジョン 削除

WordPressのリビジョン機能の使い方と最適化のコツ 2023 wp-cli wp post delete $(wp post list --post_type='revision' --format=ids) --forceHow To Delete Post Revisions using WP-CLI - Liquid Web 2023 wp post delete --force $( wp post list --post…

DB index

wp_options autoload 古いバージョンの WP だと wp_options の autoloadに インデックスがない。 Update: The reason the query is being logged is it doesn't use an index. The query time is 0, i.e. it actually executes fast. You can unset the "log…

WPScan API

https://wpscan.com/apihttps://wpscan.com/docs/api/v3/ curl -H "Authorization: Token token=API_TOKEN" https://wpscan.com/api/v3/plugins/woocommerce | python3 -mjson.tool ... { "id": "1212fec8-1fde-41e5-af70-abdd7ffe5379", "title": "Woocomme…