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 | |
// Database credentials | |
define('DB_NAME', 'datenbankname_hier_einfuegen'); | |
define('DB_USER', 'benutzername_hier_einfuegen'); | |
define('DB_PASSWORD', 'passwort_hier_einfuegen'); | |
define('DB_HOST', 'localhost'); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', ''); |
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
function list_registered_scripts_and_styles() { | |
global $wp_scripts, $wp_styles; | |
// Tabellarische Ausgabe für registrierte Skripte | |
echo "<h2>Registrierte Skripte:</h2>"; | |
echo "<table><thead><tr><th>Name</th><th>URL</th><th>Version</th><th>Abhängigkeiten</th></tr></thead><tbody>"; | |
foreach( $wp_scripts->registered as $script ) { | |
echo "<tr><td>{$script->handle}</td>"; | |
echo "<td>{$script->src}</td>"; | |
echo "<td>{$script->ver}</td>"; |
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
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
// im Seitenbaum die SeitenIDs anzeigen: | |
options.pageTree.showPageIdWithTitle = 1 | |
mod.web_list { | |
// allein durch anklicken kann ein Datensatz editiert werden | |
clickTitleMode = edit | |
// ListenZeilen bekommen im BE alternierende Farben | |
alternateBgColors = 1 | |
} |
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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY | |
# ---------------------------------------------------------------------- | |
# @Version 2.0.7 - 12/2022 | |
# @Contributor: Dominic Vogl | |
# @Author URI: https://dominicvogl.de | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
# Source URI: https://seoagentur-hamburg.com/die-perfekte-htaccess-fuer-wordpress/ | |
######################################################################## |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
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 | |
/** | |
* 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( |
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 | |
/* Thumbnail upscale | |
/* ------------------------------------ */ | |
function alx_thumbnail_upscale( $default, $orig_w, $orig_h, $new_w, $new_h, $crop ){ | |
if ( !$crop ) return null; // let the wordpress default function handle this | |
$aspect_ratio = $orig_w / $orig_h; | |
$size_ratio = max($new_w / $orig_w, $new_h / $orig_h); | |
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
<Files wp-login.php> | |
AuthName "Intern" | |
AuthType Basic | |
AuthUserFile /var/customers/webs/web58/www.world-of-textiles.com/wp-content/themes/tmpl_wot/.htpasswd | |
require valid-user | |
</Files> |
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 | |
// Put this snippet into the wp_config.php when you want to disable wp 3.7+ auto core updates | |
define( 'AUTOMATIC_UPDATER_DISABLED', true ); |
NewerOlder