/**
* Change the placeholder image
*/
add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src');
function custom_woocommerce_placeholder_img_src( $src ) {
$upload_dir = wp_upload_dir();
$uploads = untrailingslashit( $upload_dir['baseurl'] );
// replace with path to your image
$src = $uploads . '/2012/07/thumb1.jpg';
return $src;
}
WP – Cerber
Lists exactly who is visiting the site Which IP addresses are blocked Main Important: WP-Security "Force…
Security plugin All in one security
Settings Under "Setting" create backups of.htaccesswp-config.php WP version Hide info (whitelabeling)Remove metadata from WordPress from the…
WordPres Security
Create ".htaccess" hack – change Permalink Protect WP-Conifg by the following snipet in .htaccess: WP-Login.php by…
WordPress Database
Data corpses are created by plugin installations and uninstallation. Also through revisions of posts. Plugin Solution:…
DNS prefetch
Search for external links in the source code, for example "ajax.googleapis.com" … then write them directly…
Apache Module "gzip" + "deflate"
These modules are used for server-side compression of all files (incl.php) Activation occurs in .htaccess (if…
Enable browser caching in .htaccess
Each browser cached by per default. Browser caching can be activated by hand in ".htaccess"
CSS and JS mimify
White spaces ensure that the "line cursor" seigth. So the browser must jump more open than…
Speed best practice
Install as few plugins as possible Do not use plugins for all functions. For example, "Fav…
Speed factor images
Gorße's images generate emotions. But also charge more slowly. An approach to repenting images before uploading…
Speed factor hosting
Webspace (shared Webspace) V-Server (Virtual Server) Root Server (fully rentable server | Advantage – absolute control)…
Speed measurement
Measurement:Firefox -> Firebug (Hard reload: no cached contents load – Cmd+Str+R)Firefox -> Webdev tools: Str+Shift+i Website…
Woocommerce placeholder image
Development console plugin
A usefull tool to run quick PHP code and SQL queries. Debug Bar Console Download