This file contains hidden or 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
<style> | |
* {-webkit-text-size-adjust: none} | |
</style> | |
or | |
<font style=”-webkit-text-size-adjust: none”> | |
Example | |
</font> |
This file contains hidden or 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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@id": "https://expert-doors.com/#organization", | |
"@type": "Organization", | |
"name": "Врати Експерт", | |
"url": "https://expert-doors.com/", | |
"logo": "https://expert-doors.com/wp-content/uploads/2017/02/ExpertDOORlogo.png", | |
"location": | |
[{ |
This file contains hidden or 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 ($category->term_id === 57) { | |
if ( woocommerce_product_loop() ) { | |
/** | |
* Hook: woocommerce_before_shop_loop. | |
* | |
* @hooked wc_print_notices - 10 |
This file contains hidden or 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 | |
/* Source: https://wordpress.stackexchange.com/a/98251 */ | |
function wpa_98244_filter_short_description( $desc ){ | |
global $product; | |
if ( is_single( $product->id ) ) | |
$desc = ''; |
This file contains hidden or 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 | |
$file = 'wordpress-4.2.5.zip'; | |
$path = pathinfo(realpath($file), PATHINFO_DIRNAME); | |
$zip = new ZipArchive; | |
$res = $zip->open($file); | |
if ($res === TRUE) { | |
$zip->extractTo($path); | |
$zip->close(); |
This file contains hidden or 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 delete_all_comments() { | |
$comments = get_comments(); | |
foreach($comments as $comment) { | |
wp_delete_comment($comment->comment_ID, true); | |
} | |
} | |
delete_all_comments() |
This file contains hidden or 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
// Deletes all themes except the active one | |
function delete_not_active_themes() { | |
if (!function_exists('delete_theme')) { | |
require_once(ABSPATH . WPINC . '/pluggable.php'); | |
require_once(ABSPATH . 'wp-admin/includes/file.php'); | |
require_once(ABSPATH . 'wp-admin/includes/theme.php'); | |
} | |
$themes = wp_get_themes(); | |
$current_theme = wp_get_theme(); |
This file contains hidden or 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 | |
print_r(apache_get_modules()); |