Jak zainstalować Prestashop z Xampp na Windows 10 (Błędy podczas instalacji presta shop z xampp).
Ssl error windows
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>RWD Html Email</title> | |
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap" rel="stylesheet"> | |
<style> |
https://learn.microsoft.com/en-us/windows/wsl/install-manual
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
<?php | |
// Cars post type brands taxonomy https://example.org/cars/brands/brand-name/ | |
add_action('init', function () { | |
register_taxonomy( | |
'cars-brands', | |
['cars'], | |
[ | |
'labels' => [ | |
'name' => 'Brands', |
<?php | |
global $meta_boxes; | |
$prefix = 'test'; | |
function add_post_meta_box() { | |
global $meta_boxes; | |
$post_type = ['post', 'page']; | |
if (is_admin()) { |
/* transition words */ | |
const singleWords = [ "aby", "abym", "abyśmy", "abyś", "abyście", "acz", "aczkolwiek", "albowiem", "ale", "aliści", | |
"bo", "bowiem", "bynajmniej", "choć", "chociaż", "chociażby", "czyli", "dlatego", "dodatkowo", "dopóki", "dotychczas", | |
"faktycznie", "gdy", "gdyż", "jakkolwiek", "iż", "jednak", "jednakże", "jeśli", "kiedy", "lecz", "mianowicie", "mimo", | |
"np", "najpierw", "następnie", "natomiast", "ni", "niemniej", "niż", "notabene", "oczywiście", "ogółem", | |
"ostatecznie", "owszem", "podobnie", "podsumowując", "pokrótce", "pomimo", "ponadto", "ponieważ", "poprzednio", | |
"potem", "później", "przecież", "przeto", "przynajmniej", "raczej", "również", "rzeczywiście", "skoro", "także", | |
"też", "toteż", "tudzież", "tymczasem", "wedle", "według", "więc", "właściwie", "wobec", "wpierw", "wprawdzie", | |
"wreszcie", "wskutek", "wstępnie", "wszakże", "wszelako", "zamiast", "zanim", "zarówno", "zaś", "zatem", "zresztą", |
<?php | |
// Overwrite title | |
add_filter('wp_title', 'change_title', 100); | |
function change_title($title) { | |
global $post; | |
if (is_home()) { | |
bloginfo('name'); | |
} else if (is_category()) { |
<?php | |
// Catch mail error | |
add_action('wp_mail_failed', function ($error) { | |
wp_send_json_error('Send mail error.', 404); | |
}); | |
// Force html email | |
add_filter( 'wp_mail_content_type', function () { | |
return "text/html"; |
<?php | |
// 1. Send email with phpmailer | |
function wp_send_email($email, $subject) { | |
require_once(ABSPATH . WPINC . '/PHPMailer/PHPMailer.php'); | |
require_once(ABSPATH . WPINC . '/PHPMailer/SMTP.php'); | |
require_once(ABSPATH . WPINC . '/PHPMailer/Exception.php'); | |
try { | |
// Create email message here |