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: Disable updates plugins | |
* Plugin URI: https://kagg.eu/en/ | |
* Description: Disable update of certain plugins. | |
* Version: 1.0 | |
* Author: KAGG Design | |
* Author URI: https://kagg.eu/en/ | |
* License: GPL2 | |
*/ |
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 | |
/** | |
* Finds a substring between two strings. | |
* | |
* @param string $string The string to be searched | |
* @param string $start The start of the desired substring | |
* @param string $end The end of the desired substring | |
* @param bool $greedy Use last instance of`$end` (default: false) | |
* |
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 | |
/** | |
* Check if Block Editor is active. | |
* Must only be used after plugins_loaded action is fired. | |
* | |
* @return bool | |
*/ | |
function is_active() { | |
// Gutenberg plugin is installed and activated. | |
$gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) ); |
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 | |
/** | |
* Clear multiple cron jobs created by Google Reviews Business plugin. | |
*/ | |
function clear_cron_jobs() { | |
$crons = _get_cron_array(); | |
$hook = 'grp_auto_save'; | |
$args_array = array(); | |
$new_cron = array(); | |
foreach ( $crons as $timestamp => $cron ) { |
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: Add Admin | |
* Plugin URI: https://kagg.eu/en/ | |
* Description: Add admin to the WordPress site. | |
* Version: 1.0 | |
* Author: KAGG Design | |
* Author URI: https://kagg.eu/en/ | |
* License: GPL2 | |
* |
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 | |
/** | |
* Filter to fix issue in SyntaxHighlighter Evolved plugin. | |
* | |
* @param string $code Code to format. | |
* @param array $atts Attributes. | |
* @param string $tag Tag. | |
* | |
* @return string | |
*/ |
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
[ | |
{ | |
"id": 217, | |
"date": "2019-11-14T11:20:23", | |
"date_gmt": "2019-11-14T08:20:23", | |
"guid": { | |
"rendered": "http:\/\/wpml.test\/?page_id=217" | |
}, | |
"modified": "2019-11-15T12:36:54", | |
"modified_gmt": "2019-11-15T09:36:54", |
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 | |
require_once 'C:\laragon\www\test\wp-load.php'; | |
echo 'Filling up array...' . "\n"; | |
$size = 10 * 1000; | |
$cycles = 1000 * 1000; | |
$array = []; |
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 | |
$data = [ | |
'element_data' => | |
[ | |
7 => | |
[ | |
'translation_id' => '18', | |
'trid' => '12', | |
'lang' => 'en', |
OlderNewer