1 |
$wc_product->get_catalog_visibility() |
С помощью этого кода можно проверить, выбрано ли скрывать товар в каталоге и поиске
Прежде всего этот сайт — моя записная книжка, в которой собрана информация, часто используемая при создании сайтов. Здесь я оставляю заметки с кодом для себя.Может быть что-то, будет полезно и другим разработчикам.
1 |
$wc_product->get_catalog_visibility() |
С помощью этого кода можно проверить, выбрано ли скрывать товар в каталоге и поиске
Resolve a timed out state
If a certificate issuance times out, Cloudflare tells you where in the chain of issuance the timeout occurred: Initializing, Validation, Issuance, Deployment, or Deletion.
To resolve timeout issues, try one or more of the following options:
Change the Proxy status of related DNS records to DNS only (gray-clouded) and wait at least a minute. Then, change the Proxy status back to Proxied (orange-clouded).
Disable Universal SSL and wait at least a minute. Then, re-enable Universal SSL.
Send a PATCH request to the validation endpoint
using the same DCV method (API only).
Follow the APEX validation method.
https://docs.ispsystem.ru/vmmanager-admin/seti/dobavlenie-ipv6-adresa-na-server#id-%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5IPv6-%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0%D0%BD%D0%B0%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80-Debian%D0%B8Ubuntu
1 |
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 ); |
privnote.com
1 |
add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
youtube.com/watch?v=WfgyusFEQp4
Хорошо описано тут
.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/
1 2 3 4 5 6 |
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^oldsite.com$ [OR] RewriteCond %{HTTP_HOST} ^www.oldsite.com$ RewriteRule (.*)$ https://newsite.com/$1 [R=301,L] </IfModule> |
1 2 3 4 5 |
RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] |