Skip to content

Instantly share code, notes, and snippets.

View johanoloflindberg's full-sized avatar
💭
Ready to work 😃

WEBBAB johanoloflindberg

💭
Ready to work 😃
View GitHub Profile
@johanoloflindberg
johanoloflindberg / WP Security README.md
Created July 4, 2017 03:53 — forked from ericrasch/WP Security README.md
Hardening & Improving WordPress Security
@johanoloflindberg
johanoloflindberg / WP recommended PHP settings.md
Created July 4, 2017 03:53 — forked from ericrasch/WP recommended PHP settings.md
Recommended PHP settings for WordPress
@johanoloflindberg
johanoloflindberg / good PR desc.md
Created July 4, 2017 03:53 — forked from ericrasch/good PR desc.md
Helpful GitHub PR descriptions

Please write a short description of what the PR entails for project. Also, please remember to begin your PR as soon as you create a branch and make your first commit. This allows others to see what's actually being worked on and what the latest updates are (especially if a project has a lot of existing branches).

REF:

  • {{insert any Basecamp or other links that are relevant to the project here}}

TODO

Key Features:

  • Integrates with CRM, email marketing and other programs
  • Analyze data from multiple channels in a single interface
  • Visitor-focused data instead of broad stats

Pros

@johanoloflindberg
johanoloflindberg / Increasing Website Traffic.md
Created July 4, 2017 03:53 — forked from ericrasch/Increasing Website Traffic.md
Increasing Website Traffic Case Studies
@johanoloflindberg
johanoloflindberg / wp-seo.php
Created July 4, 2017 03:53 — forked from jeremyfelt/wp-seo.php
Gist description...
add_action( 'init', 'jf_register_my_new_sitemap', 99 );
/**
* On init, run the function that will register our new sitemap as well
* as the function that will be used to generate the XML. This creates an
* action that we can hook into built around the new
* sitemap name - 'wp_seo_do_sitemap_my_new_sitemap'
*/
function jf_register_my_new_sitemap() {
global $wpseo_sitemaps;
$wpseo_sitemaps->register_sitemap( 'my_new_sitemap', 'jf_generate_my_new_sitemap' );
@johanoloflindberg
johanoloflindberg / disable-plugins-in-development.php
Created July 4, 2017 03:52
Disable specified WordPress plugins in your development environment. Useful for plugins that either make network calls you don't want when working (eg, auto-posting to Facebook), or for plugins that rely on services only available in production (eg, Varnish).
<?php
/**
* Disable specified plugins in development environment.
*
* This is a "Must-Use" plugin. Code here is loaded automatically before regular plugins load.
* This is the only place from which regular plugins can be disabled programatically.
*
* Place this code in a file in WP_CONTENT_DIR/mu-plugins or specify a custom location
* by setting the WPMU_PLUGIN_URL and WPMU_PLUGIN_DIR constants in wp-config.php.
*
@johanoloflindberg
johanoloflindberg / robots.txt
Created July 4, 2017 03:52 — forked from ericrasch/robots.txt
Robots.txt files for sites with WordPress.
User-agent: *
# Changing the /feed back to include the trailing slash since it otherwise blocks URLs like http://www.thesimpledollar.com/feeding-my-sweet-tooth-without-breaking-my-belly-or-breaking-the-bank/
Disallow: /feed/
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-content/cache
Disallow: /wp-includes
Disallow: /trackback
Disallow: /xmlrpc.php