Home / Blog

How to Make a WordPress AJAX Call

Using AJAX within WordPress can be a little hard to understand. Heck, using AJAX in general can be a little hard to understand.

Okay, so Ajax is going to call me back? Is he going to call my cellphone or the office line? Click To Tweet

All kidding aside, I did actually struggle a bit understanding how AJAX works within the WordPress framework. Then I read Devin Price’s post titled Simple Ajax Example and all the lights started to flicker on. Eureka!!

Making a WordPress AJAX call is a bit different then how you do it with just PHP and Javascript. AJAX is actually built into the WordPress framework. This has a lot of advantages, but you have to use it the way it’s described in the codex.
https://codex.wordpress.org/AJAX_in_Plugins

As much as I love the WordPress codex I sometimes find that the explanations in it are written with the assumption that you already understand everything about WordPress. Well, I say “boooooo” to hard to understand code examples.

Since I struggled a bit to find a good explanation on how to make a WordPress AJAX call I thought I would write this post on how to do so.

Let’s get started…

Remove Activation Notice Ultimate Addons for Visual Composer

If you are a theme developer and use Visual Composer you really should look into Ultimate Addons for Visual Composer. It’s a really great expansion of the page builder tool.

If you are bundling the Ultimate Addons for Visual Composer with your theme you’re going to want to disable the activation notice for your end users.

“Please activate your copy of the Ultimate Addons for Visual Composer to get update notifications, access to support features & other resources!”

How to do this really should have been documented somewhere by the plugin author, but I digress.

I spent the better part of my morning working this out so here it is:

Woocommerce Google Product Feed – exclude / hide all products by default

If you love using WooCommerce as an ecommerce tool like me, at some point you will probably look into using the Google Product Feed extension.

This extension creates a feed for Google Merchant Center to pull from so your products show up in the Google Products section of search results. It’s a great extension and you can check it out at: http://www.woothemes.com/products/google-product-feed/

That said, I ran into an issue with this extension. By default the extension adds all products to the feed. There is a section on each WooCommerce product page that gives you the option to exclude the product feed.

This is a nice feature, but if you are like me and have a client that has 250 products and only wants to include 3 of those products in the feed what do you do?

I don’t want go through each product and click the exclude button. That would take forever!! Click To Tweet

Best Web Design Magazine

Net Magazine: A One-Stop Source For All Things Internet Marketing

Keeping abreast of everything new on the Internet, including all the latest apps and tools, is no easy task. It seems like every day brings some new technology – or ten.

Typically, you have to subscribe to four or five sources, at least, to stay on the up-and-up. Being able to find current information in one place would be a Godsend, wouldn’t it?

Well, we’ve found the holy grail of web design magazines and it’s chock full of everything you need to stay ahead in a fast paced industry.

10 Best Lynda Courses to Learn Web Design On Lynda.com

If you’re starting a new business or changing the direction of your current business, the budget required to hire someone to create a website for you may not be feasible, and navigating the technologies required to create a website yourself can be rather confusing, especially because new technologies and tools are emerging at a rampant speed.

But despite challenges, with the right tools, it’s entirely possible to learn how to design your own website – even if you feel technologically handicapped.

Besides doing everything we can to serve our clients, at Share Web Design we strive to support the intrepid DIYer with free web design help.

We do this through our blog by anticipating and answering your design and marketing questions, through YouTube tutorials and by offering the option to message us for help.

We want you to say “Yes I can!” Click To Tweet

How to Defend Against a WordPress Brute Force Attack

There are a lot of unscrupulous individuals out there that have been breaking into people’s WordPress websites and causing havoc on servers in general. One of the ways these individuals are doing this is by using what’s called a WordPress brute force attack. A WordPress brute force attack is when a hacker, or rather slime of the earth hacker, sicks a bot (hacker program) on your WordPress login area to gain access to your administrative panel. This bot tries to guess your username and password by using processing power to enter as many combinations as possible until it guesses correctly, hence the name WordPress brute force attack.

A WordPress brute force attack is scary and awful for two reasons: Click To Tweet

Change default number of products in Magento Admin Panel – Catalog – Manage Products page

This is a nice little trick I just learned on how to change the default number of products in your Magento Admin Panel – Catalog – Manage Products page to what ever you want. If you are a Magento eCommerce user you know that on install the default is set to 20 products. If you are like me you have way more products on your site than 20, then this is not ideal.

This is how to change the default to 30, 50, 100, 200.

Recover Dreamweaver Site Definitions

Last night I had an “oops” moment. I was running way too many programs at once, watching a movie, and I decided it would be a good idea to transfer a bunch a files all at the sames time. My Mac had a different opinion about that and froze up on me.

I didn’t think it was an issue at first. I restarted my computer and everything worked great.

Then I opened up Dreamweaver and all my site definitions were gone. Bummer!! 🙁 Click To Tweet

Thankfully there is a quick fix for this. As long as you backup your Mac or use restore points on a Windows machine you are saved.

This is what you need to do:

1 2

Featured Posts

"Like" Us On Facebook

Facebook By Weblizar Powered By Weblizar