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 | |
//https://woopress.hu/forumok/tema/rende/ | |
function woocommerce_add_order_page_date_and_time($h_time) | |
{ | |
return get_the_time(__('Y/m/d G:i', 'woocommerce')); | |
} | |
add_filter('woocommerce_admin_order_date_format', 'woocommerce_add_order_page_date_and_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
/* | |
Theme Name: Twenty Fifteen Child | |
Theme URI: http://example.com/twenty-fifteen-child/ | |
Description: Twenty Fifteen Child Theme | |
Author: John Doe | |
Author URI: http://example.com | |
Template: twentyfifteen | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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', 'my_theme_enqueue_styles' ); | |
function my_theme_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
?> |
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 my_custom_admin_url($path) { | |
return str_replace('wp-admin', 'beallitasok', $path); | |
} | |
add_filter('admin_url', 'my_custom_admin_url'); |
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 | |
RewriteBase / | |
RewriteRule ^beallitasok[^/]*$ beallitasok/ [R=301,L] | |
RewriteCond %{QUERY_STRING} (.*)$ | |
RewriteRule ^beallitasok(.*)$ wp-admin$1? [QSA,L,NE] | |
RewriteCond %{QUERY_STRING} (.*)$ | |
RewriteRule ^wp-admin/?$ / [NE,R=404,L] | |
RewriteCond %{QUERY_STRING} (.*)$ | |
RewriteRule ^wp-admin/(.*)$ beallitasok/$1 [QSA,R=301,L,NE] |
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
add_filter( 'plugin_row_meta', 'custom_plugin_row_meta', 10, 2 ); | |
function custom_plugin_row_meta( $links, $file ) { | |
if ( strpos( $file, 'plugin-file-name.php' ) !== false ) { | |
$new_links = array( | |
'donate' => '<a href="donation_url" target="_blank">Donate</a>', | |
'doc' => '<a href="doc_url" target="_blank">Documentation</a>' | |
); | |
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_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
</ifModule> |
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: Swift Performance early loader | |
*/ | |
class Swift_Performance_Loader { | |
public static function load(){ | |
wp_cookie_constants(); |
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 | |
$memory_limit = ini_get('memory_limit'); | |
if (preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) { | |
if ($matches[2] == 'M') { | |
$memory_limit = $matches[1] * 1024 * 1024; // nnnM -> nnn MB | |
} else if ($matches[2] == 'K') { | |
$memory_limit = $matches[1] * 1024; // nnnK -> nnn KB | |
} | |
} |
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
https://waze.com/ul?ll=szélesség,hosszúság&navigate=yes | |
A fenti kép alapján így fog kinézni: | |
https://waze.com/ul?ll=47.029519,18.014162&navigate=yes |