🧚♂️
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 | |
/** | |
* Remove an object filter. | |
* | |
* @param string $tag Hook name. | |
* @param string|array $callback Class name or array with class and method. | |
* @param string|int|void $priority Priority, leave empty for all. | |
* @return bool true if removed, false if not. | |
* | |
* @link https://wordpress.stackexchange.com/a/140989 |
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 | |
// Valid values: development, staging and production. To get this value use: wp_get_environment_type() | |
defined( 'WP_ENVIRONMENT_TYPE' ) or define( 'WP_ENVIRONMENT_TYPE', 'production' ); | |
define('DB_NAME', 'fill in db name'); | |
define('DB_USER', 'fill in username'); | |
define('DB_PASSWORD', 'fill in db password'); | |
define('DB_HOST', 'localhost'); |
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: Gravity Forms IBAN | |
Plugin URI: https://wordpress.org/plugins/gravity-forms-iban/ | |
Description: Adds an IBAN mask and IBAN validation to Gravity Forms. | |
Author: Admium and Jeroen Schmit, Slim & Dapper | |
Version: 1.0 | |
Author URI: www.admium.nl | |
GitHub Plugin URI: AdmiumNL/adm-gravity-iban | |
*/ |
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 | |
echo '<pre>'; | |
$test_array = array(); | |
for ( $i = 0; $i <= 10000; $i ++ ) { | |
$test_array[] = [ | |
'index' => $i, | |
'include' => ( $i % 3 === 0 ) ? true : false, | |
]; | |
} |