-
name of the current banch
git rev-parse --abbrev-ref HEAD
-
all commits that your branch have that are not yet in master
git log master..<HERE_COMES_YOUR_BRANCH_NAME>
Obviously this was frustrating, but after a little investigation, the fact that they were variations was the key to fixing the problem. | |
Typically WooCommerce allows 60 product variations in total when using ajax to update the variations on the product page, and in most cases the error message is due to the product exceeding this. Fortunately, there’s a relatively simple fix. | |
Add the following code to your functions.php file and you should be seeing your products back in stock in no time at all. | |
// Increase WooCommerce Variation Limit | |
function custom_wc_ajax_variation_threshold( $qty, $product ) { |
<?php | |
/* Plugin Name: Damn Vulnerable WordPress Plugin | |
* Description: Intentionally vulnerable plugin for plugin author education | |
* Version: 0.1 | |
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
* Author: Jon Cave | |
* Author URI: http://joncave.co.uk | |
* License: GPLv2+ | |
* | |
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
/* ------------------------------------------------------------------------- * | |
* Returning an authentication error if a user who is not logged in tries to query the REST API | |
/* ------------------------------------------------------------------------- */ | |
function only_allow_logged_in_rest_access( $access ) { | |
if( ! is_user_logged_in() ) { | |
return new WP_Error( 'rest_API_cannot_access', 'Only authenticated users can access the REST API.', array( 'status' => rest_authorization_required_code() ) ); | |
} | |
return $access; | |
} | |
add_filter( 'rest_authentication_errors', 'only_allow_logged_in_rest_access' ); |
<?php | |
/* | |
Plugin Name: Dashboard Widget Activity Custom Post Type | |
Plugin URI: | |
Description: | |
Author: Daniele Mte90 Scasciafratte | |
Version: 1.0.0 | |
Author URI: http://mte90.net | |
*/ |
Okay, Kids, Here We Go...
"What You Need To Know About Your Next Domain Name"
I highly respect what Fred has done, and continues to do, to help entrepreneurs and for that I'd like to "give back" myself... and I'm posting anonymously as I have nothing to gain in anyway by sharing this information...
I'm a serial Internet entrepreneur since 1990 (pre-Web). I've been involved in hundreds of projects online (have built more than one Top 500 web site) and I've been a very active and successful domain name 'trader' along the way.
I've personally owned over 50,000 domains on and off during the past 15+ years. I've been involved in some million$+ deals, and have owned some domains that you know of (but I won't name). I've also been involved in 1,000s of smaller deals. So this is a topic I know very well.
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
<?php | |
/* | |
Plugin Name: XML-RPC Brute Protection | |
Description: Disable XML-RPC methods used in brute-force amplification attacks | |
Author: Keith Solomon | |
Version: 1.0 | |
License: GPL2 | |
*/ | |
function mmx_remove_xmlrpc_methods($methods) { |
<script type="application/ld+json"> | |
{ "@context" : "http://schema.org", | |
"@type" : "Organization", | |
"url" : "https://jamaicagetawaytravels.com", | |
"logo" : "https://jamaicagetawaytravels.com/wp-content/uploads/2014/03/jamaica-get-away-travels-logo1.png", | |
"contactPoint" : [ | |
{ "@type" : "ContactPoint", | |
"telephone" : "+1-876-776-0001", | |
"contactType" : "reservations" | |
} ] } |