Skip to content

Instantly share code, notes, and snippets.

@Retter241
Retter241 / faq_section.html
Last active Apr 29, 2021
Faq block ( front )
View faq_section.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
View Add Woo Product Custom Fiedls
/*
* Добавление поля экспресс доставка у товара
* https://wpruse.ru/woocommerce/custom-fields-in-products/
*/
add_action( 'woocommerce_product_options_general_product_data', 'art_woo_add_custom_fields' );
function art_woo_add_custom_fields() {
global $product, $post;
echo '<div class="options_group">';// Группировка полей
// Чекбокс
View curlInit_once.php
<?php
/**
* Curl init function
* @param (string)$url
* @param (array)$params
* @return $response
*/
function curlInit($url = '', $params = array())
{