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 | |
// Callback function to format numbers with | |
function format_numbers_with_nbsp($content) { | |
// Regular expression pattern to match numbers | |
$pattern = '/\b(\d{1,3}(?:\d{3})*)\b/'; | |
// Replace matched numbers with formatted version | |
$formatted_content = preg_replace_callback($pattern, 'add_nbsp_to_number', $content); |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( | |
//////Author Parameters - Show posts associated with certain author. |
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
ModPagespeedDisallow */admin/* | |
ModPagespeedDisallow */wp-admin/* | |
ModPagespeedDisallow */tinymce/* | |
ModPagespeedDisallow */mysql/* | |
ModPagespeedDisallow */tubepress/* | |
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-secure.conf | |
# | |
# | |
# This file includes common security considerations for wordpress using nginx. | |
# | |
# The goal is to block actions which are usually dangerous to wordpress. | |
# Additionally, we block direct access to PHP files and folders which should not | |
# be accessed directly from a browser. | |
# | |
# Also have included exceptions for plugins that are known to require this access. |
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 os_ya_like_script() { | |
wp_enqueue_script( 'yashare', '//yandex.st/share/share.js', null, '1', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'os_ya_like_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
$args = array( | |
'author_email' => '', | |
'ID' => '', | |
'karma' => '', | |
'number' => '', | |
'offset' => '', | |
'orderby' => '', | |
'order' => 'DESC', | |
'parent' => '', | |
'post_ID' => '', |
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 (have_posts()) : | |
while (have_posts()) : the_post(); ?> | |
$expirationtime = get_post_custom_values('expiration'); | |
if (is_array($expirationtime)) { | |
$expirestring = implode($expirationtime); | |
} | |
$secondsbetween = strtotime($expirestring)-time(); | |
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
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'DISALLOW_FILE_MODS', true ); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L] | |
</IfModule> |
NewerOlder