add capability on plugin activation

add capability on plugin activation

In the situation below is a class with two methods which could be hooked to plugin (de)activation. The first gets the user with the same e-mail address as the website (settings->general) and adds a capability to that user. The second removes the capability from all...

Reorder posts in blog loop

Reorder posts in blog loop

If you want to sort by title The code on the right is a individual loop you could place in wordpress. In the arguments the orderby is set to title, so posts will show alphabetically. Up and down can be set with DESC or ASC. Reorder the main loop If you want your...

Member or visitor content

Decide who can see the content The code on the below can be used to: Show content only to members [member]visible by members[/member] Sow content only to guests [visitor]visible by visitors[/visitor] Place it in the funtions.php in your theme folder....

WordPress php variabele in javascript and ajax request

All you need This article gives you all you need to make a plugin that can: Use a php variabele in a javascript file. (make it available) Make a javascript request to the server and get a php value in return. Use the php value in your page To start you need.....

WooCommerce cutomizing

list and compare There are thing WooCommerce can not do: list products and compare. WooCommerce Pud List and Compare products for wholesale and food delivery. list and compare Customizing the sidebar Depending on your theme, all WooCommerce pages can have a sidebar....

woocommerce list and compare

woocommerce list and compare

Plugin that lists and compares products. WooCommerce is a very nice free plugin for WordPress. WooCommerce Pud is a complementary plugin that offers two abilities: to list products and compare them. Both functionalities are not standard in WooCommerce and...