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.2 | |
* 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 | |
/** | |
* Add shortcuts. | |
* | |
* @return void | |
*/ | |
function kagg_shortcuts() { | |
?> | |
<script> |
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 to hide file download links and count download number. | |
* | |
* @package kagg-downloader | |
*/ | |
namespace GTS\Quote; | |
/** |
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 | |
/** | |
* Redirect class file. | |
* | |
* @package wtei-core | |
*/ | |
namespace WTEICore; | |
/** |
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 | |
if( ! function_exists( 'woodmart_autoload' ) ) { | |
function woodmart_autoload($className) { | |
global $woodmart_files; | |
$className = ltrim($className, '\\'); | |
$fileName = ''; | |
$namespace = ''; | |
if ($lastNsPos = strripos($className, '\\')) { | |
$namespace = substr($className, 0, $lastNsPos); |
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 | |
$arr = [ | |
[ 'foo' => 1, 'bar' => 7, 'den' => 9 ], | |
[ 'foo' => 11, 'bar' => 4, 'den' => 0 ], | |
[ 'foo' => 1, 'bar' => 12, 'den' => 6 ], | |
[ 'foo' => 1, 'bar' => 10, 'den' => 6 ], | |
]; | |
uasort( $arr, 'cmp' ); |
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
$boundary = str_repeat( '-', 24 ) . wp_generate_password( 16 ); | |
$headers = array( | |
'content-type' => 'multipart/form-data; boundary=' . $boundary, | |
); | |
if ( ! isset( $files['path'] ) ) { | |
$error_message = 'Invalid arguments'; | |
return array( $success, $error_message, $word_count, $individual_word_count ); | |
} |
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 | |
protected function get_custom_customizer_option() { | |
static $theme_slug = null; | |
$current_language = self::get_language(); | |
if ( ! $theme_slug ) { | |
$theme_slug = get_option( 'template' ); | |
} | |
$option_prefix = str_replace( '-', '_', $theme_slug ); | |
$option_name = $option_prefix . self::get_option_key() . $current_language; |