View safelist.txt
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
#wp-custom(.*) | |
/wp-content/uploads/generateblocks/(.*).css | |
(.*)#ez-toc(.*) | |
(.*)#gspb(.*) | |
(.*).aawp(.*) | |
(.*).alert | |
(.*).align(.*) | |
(.*).animate | |
(.*).box(.*) | |
(.*).button |
View wp-image-sizes.php
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_action( 'init', function() { | |
add_image_size( 'rename-this', 1200, 500, false ); | |
add_image_size( 'rename-again', 550, 550, true ); | |
} ); | |
// Add these sizes to Gutenberg | |
add_filter( 'image_size_names_choose','md_custom_image_sizes_gb' ); | |
function md_custom_image_sizes_gb( $sizes ) { |
View wooc-scripts-limit.php
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_action('wp_enqueue_scripts', 'myown_remove_scripts'); | |
function myown_remove_scripts(){ | |
if ( function_exists( 'is_woocommerce' ) ) { | |
//dequeue scripts and styles from not WC pages | |
if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { | |
wp_dequeue_style( 'woocommerce-layout'); | |
wp_dequeue_style( 'woocommerce-smallscreen'); | |
wp_dequeue_style( 'woocommerce-general'); | |
wp_dequeue_script( 'wc_price_slider' ); |
View revision-limit.php
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(!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS',10); | |
?> |
View generator-remove.php
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 | |
function complete_version_removal(){return'';} | |
add_filter('the_generator','complete_version_removal'); | |
?> |
View login-logo.php
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 | |
function namespace_login_style(){ | |
if( function_exists('get_custom_header')){ | |
$width = get_custom_header()->width; | |
$height = get_custom_header()->height; | |
} else { | |
$width = HEADER_IMAGE_WIDTH; | |
$height = HEADER_IMAGE_HEIGHT;} | |
echo ''.PHP_EOL;} | |
?> |
View remove-featured-images-from-db.php
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 | |
// Place the given PHP code in between <?php and ?> inside your theme’s functions.php file. If there is no ending ?> , it is recommended to place the code at the end part of the file. After you finished placing the code, save and update the functions.php file. You will see that all featured images are gone. Now you can remove the above PHP code from functions.php as it is just a one-time job. Please note that you will not be able to set featured images until you remove the mentioned code. (This code will keep removing them.) | |
global $wpdb; $wpdb->query( " DELETE FROM $wpdb->postmeta WHERE meta_key = '_thumbnail_id' " );?> |
View seomonth.php
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 | |
// you can change 20 on line #8 to any date between 1 to 27 | |
add_shortcode( 'seomonth' , 'gtrmd_seomonthyear' ); | |
function gtrmd_seomonthyear() { | |
$gtseomonthyear1 = date_i18n("F"); | |
$gtseomonthyear2 = date("F", strtotime ( '+1 month' , strtotime ( $gtseomonthyear1 ) )) ; | |
$gtdtseocheck = date("j"); | |
if($gtdtseocheck > 20){ | |
return "$gtseomonthyear2"; | |
} else{ |
NewerOlder