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 Comments (Must Use version) | |
* Description: Disables all WordPress comment functionality on the entire network. | |
* Version: 1.1.2 (changed) | |
* Plugin Changed URI: https://gist.github.com/doiftrue/ab931c1d866cb113b4ff318a5faeb3b3 | |
* Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
* GitHub Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
* Author: WPDeveloper | |
* Author URI: https://wpdeveloper.com |
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 | |
/** | |
* Disable forced checking for new WP, plugins, and theme versions in the admin panel, | |
* so that it doesn't slow down when you haven't visited for a long time and then visit... | |
* All checks will happen unnoticed through cron or when you visit the "Dashboard > Updates" page. | |
* | |
* @see https://wp-kama.ru/filecode/wp-includes/update.php | |
* @author Kama (https://wp-kama.ru) | |
* @version 1.1 |
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 Customizer | |
* Description: Completely turn off customizer on your site. | |
* | |
* Plugin URI: https://gist.github.com/doiftrue/6d8f975ed8af5ac325b6d9a1c52abf1c | |
* Author URI: https://wp-kama.com | |
* Author: Timur Kamaev | |
* Note: This is a fork of https://wordpress.org/plugins/customizer-disabler/ (v2.2.7) | |
* Source Author: Johannes Siipola |
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 | |
/** | |
* @author Kama (wp-kama.com) | |
* @see https://gist.github.com/doiftrue/d975646f41f218499866968a1a7dbf62 | |
* | |
* @version 2.1 | |
*/ | |
class Theme_Scripts_Styles { |
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
/** | |
* Предыдущие записи из рубрики (относительно текущей записи) + | |
* кольцевая перелинковка (можно указывать таксономию и тип записи). | |
* | |
* Кэширует результат в объектный кэш, если он включен. | |
* | |
* Вызываем функцию так: | |
* | |
* echo kama_previous_posts_from_tax_lis( [ | |
* 'post_num' => 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 | |
$my_metabox = new My_Best_Metaboxes( 'post' ); | |
$my_metabox->init(); | |
class My_Best_Metaboxes { | |
public $post_type; | |
static $meta_prefix = 'company_address'; |
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 | |
/** | |
* Gathers and caches the minimum and maximum value of the specified meta-field for the specified terms of the taxonomy. | |
* Suitable for obtaining the minimum and maximum prices of products from categories. | |
* | |
* The code caches the minimum and maximum numerical values in the post meta-fields for each category. | |
* It also collects the overall minimum and maximum values for the entire taxonomy. | |
* | |
* @changelog |
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( ! is_admin() ){ | |
return; | |
} | |
add_action( 'admin_init', [ Kama_Post_List_Table_Thumb::class, 'init' ] ); | |
/** | |
* Ability to upload and modify post thumbnails from the posts list table in the admin panel. |
NewerOlder