I hereby claim:
- I am wordpressvn on github.
- I am huynhsituan (https://keybase.io/huynhsituan) on keybase.
- I have a public key ASD8XhpTr-WNlhiAXnfUFFYDKMrGsEbDrFmmy4kOc83e5Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
Description: unset WooCommerce billing & shipping address_1 field in checkout in favor for 2 new custom fields street and houseno | |
Author: Code Agency | |
Author URI: https://codeagency.be | |
*/ | |
function codeagency_remove_checkout_fields( $fields ) { | |
// Billing fields | |
// unset( $fields['billing']['billing_company'] ); | |
// unset( $fields['billing']['billing_email'] ); |
<?php | |
/** | |
* Add a 'Add rel="nofollow" to link' checkbox to the WordPress link editor | |
* | |
* @see https://danielbachhuber.com/tip/rel-nofollow-link-modal/ | |
*/ | |
add_action( 'after_wp_tiny_mce', function(){ | |
?> | |
<script> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
/** | |
* W3C Fix and HTML minifier | |
* Nobody knows how this work, so don't touch it!!! | |
* | |
* https://wordpress.stackexchange.com/a/227896/129134 | |
* https://stackoverflow.com/a/41148695 | |
*/ |
<?php | |
/* | |
Plugin Name: tinyLogin | |
Plugin URI: http://wp.tribuna.lt/tiny-login | |
Description: A simple front-end login/registration system. Adds template tags and shortcodes. Shortcodes: [tiny_form_login]/[tiny_form_register]. Template tags: get_tiny_form_login()/get_tiny_form_register() and the_tiny_form_login()/the_tiny_form_register() | |
Version: 0.1 | |
Author: Arūnas | |
Author URI: http://wp.tribuna.lt/ | |
Text Domain: tiny_login | |
*/ |
let botToken='1356037801:AAG8tzLp03DIhпр48jZ-MHC3NNGOF6QFjM4'//токен бота | |
let webAppUrl='https://script.google.com/macros/s/AKfycbxK945bZlFW_8rrtPt0XmkVyN7ra0ELuUZHyOeR9zvOPcDxUGxu/exec'//id таблицы | |
let telegramUrl = "https://api.telegram.org/bot" + botToken; | |
function setWebhook(){ | |
var url = telegramUrl + "/setWebhook?url=" + webAppUrl; | |
var response = UrlFetchApp.fetch(url); | |
Logger.log(response) | |
} | |
function deleteWebhook(){ |
<?php | |
// Debug | |
//Activate log files in wp-config.php | |
define( 'WP_DEBUG', true ); // Enabling WP_DEBUG will cause all PHP errors, notices and warnings to be displayed. | |
define( 'WP_DEBUG_LOG', true ); // Enable Debug logging to the /wp-content/debug.log file | |
define( 'WP_DEBUG_DISPLAY', true ); // Controls whether debug messages are shown inside the HTML of pages or not. | |
// use this | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); |
** WP - Optimizations and Cleanup **
Here you can find a a list of WP optimization and cleanup functions and methodology.
===================================================================== | |
Фильтр по acf полю | |
<select onchange="location=value"> | |
<option value="" selected="selected">Выбрать район</option> | |
<option value="?district=1">Район 1</option> | |
<option value="?district=2">Район 2</option> | |
<option value="?district=3">Район 3</option> | |
</select> |