This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: DLM Product Defaults | |
* Description: Sample plugin that sets product defaults when you publish a product for a first time or create via Woo APIs. | |
* Author: Darko Gjorgjijoski | |
* Version: 1.0.0 | |
* License: GPLv2 or later | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Something else... | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
define( 'WP_DEBUG_LOG', true ); | |
// something else... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* [WPForms] | |
* Prepopulate the order id in the WPForms on the order thank you page. | |
* | |
* @param $value | |
* @param $field | |
* @param $form | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Changes the default vimeo video page slug. | |
* @return string | |
*/ | |
function dgv_post_type_slug() { | |
return 'videos'; | |
} | |
add_filter('dgv_post_type_slug', 'dgv_post_type_slug'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/network/interfaces | |
# Loopback device: | |
auto lo | |
iface lo inet loopback | |
# device: ens18 | |
auto ens18 | |
iface ens18 inet static | |
address <additional IP> | |
netmask 255.255.255.255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class MkNumberFormatter | |
*/ | |
class MkNumberFormatter extends NumberFormatter { | |
public function format( $num, $type = null ) { | |
$formatted = parent::format( $num, $type ); | |
if ( 'mk' === $this->getLocale() ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Append date to the video title stored in Media > Library | |
* | |
* @param $args | |
* | |
* @return mixed | |
*/ | |
function dgv_before_create_local_video_params_823842831( $args ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Samples/Snippets to extend functionality of IP Location Block | |
* | |
* @package IP_Location_Block | |
* @author tokkonopapa <[email protected]> | |
* @license GPL-3.0 | |
* @link https://iplocationblock.com/ | |
* @copyright 2013-2019 tokkonopapa | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ip_geo_block_settings[version]": "3.0.0", | |
"ip_geo_block_settings[matching_rule]": "0", | |
"ip_geo_block_settings[white_list]": "JP", | |
"ip_geo_block_settings[black_list]": "ZZ", | |
"ip_geo_block_settings[extra_ips][white_list]": "192.0.64.0/18\n69.46.32.0/20", | |
"ip_geo_block_settings[extra_ips][black_list]": "", | |
"ip_geo_block_settings[signature]": "../,/wp-config.php,/passwd\ncurl,wget,eval,base64\nselect:.5,where:.5,union:.5\nload_file:.5,create:.6,password:.4", | |
"ip_geo_block_settings[response_code]": "403", | |
"ip_geo_block_settings[login_fails]": "5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Drop-in for IP Location Block custom filters for admin | |
* | |
* This file should be named as `drop-in-admin.php`. | |
* | |
* @package IP_Location_Block | |
* @author darkog <[email protected]> | |
* @license GPL-3.0 | |
* @link https://iplocationblock.com/ |