Get A List Of Registered Actions In WordPress

WordPress actions and filters is an event driven architecture that allow you to run specific code at certain times in your application. To do this WordPress uses two functions the add_action() to add new callback functions to an action, and the do_action() function which will run all the callback functions assigned to this action. In a recent project I was testing some code that used AJAX to run an action

Read more...

Change Language Locale From WordPress Plugin

WordPress has the ability to be fully translated, this can be done in both themes and plugins. Translation Files To get WordPress to translate all of the text it uses the GNU gettext system, which wraps all the text on the page in a lookup function call. This function will use the language translation file to lookup non-english words and display them in the required language. The files needed for

Read more...

Flush Permalinks On Custom Post Type

WordPress has the ability to have different post types, the main post type you will use in WordPress is the post type called Post. But there are other defaults such as Pages and Attachments. All the post types in WordPress are stored in the same table wp_posts there is a column on this table which will decide the type of post, this is defined as post_type. In version 3.0 of

Read more...

Debugging In WordPress

Debugging your website is very important for any project, you will need to be able to debug your site in all the difference environments from local to live. But depending on the environment you will want to debug in different ways. For example on your local environment you may want to output all PHP errors on the screen to make it easier to fix the problems, but you will not

Read more...

Free Files For August 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free in August 2014. FW Responsive Pricing Table 34 purchases at the price of $3. FW Responsive Pricing Table is package

Read more...

Install Doctrine With Zend Framework 2

In this tutorial we are going to learn how you can install doctrine into your Zend Framework 2 application. What Is Zend Framework 2? Zend framework is one of the most popular PHP frameworks created for high performing PHP applications. It is an open source project supported by Zend Technologies. Zend Framework uses 100% object-oriented approach to PHP development and uses most of the new features available to PHP including

Read more...

How To Use WordPress Thickbox To Create A Gallery

WordPress comes with an inbuilt Javascript library which allows you to easily show pop-up dialog boxes on your WordPress site. This Javascript library is called Thickbox, which is a lightweight library used to create dialog widgets built on top of the jQuery library. The Thickbox library can be used to display an image, multiple images, inline content, iframed content and even content from an iframe. Thickbox Using the Thickbox library

Read more...

Using IF Statements In Sass

In previous tutorials we were investigating some of the features and benefits you get with using Sass to generate your CSS files. If you haven't tried Sass then I advise you look into using it in your next project, to get information on what's involved with Sass view my article on Getting Started with Sass. We also learnt that you can use loops just like in other programming languages to

Read more...

Convert Image To Data URI With PHP

One of the easiest ways to speed up your page loading times is to reduce the amount of HTTP requests that your website makes, each time your webpage needs to fetch an external resource such as a CSS stylesheet, a Javascript files or images it will make a HTTP request to the server. The server will then return this resource back to your web page and use this on the

Read more...

Dynamically Create Classes With SASS

There are many advantages to using CSS pre-processors like SASS, some of the features allow you to end up writing less CSS code by using inheritance and functions in SASS to reuse the same code on your different CSS classes and IDs. To learn more about getting started with SASS you can refer to a previous articles. Getting started with SASS One of my favourite features of SASS is the

Read more...

1 2 3 4 5 6 7 8 9 10 67