…With creational patterns, we learned how we should create our objects, and from structural patterns we learned how we should structure our classes and objects to help build a better application.In this article, we will be going through the command design pattern. As the name says, in this pattern we…
…with Yii2: Getting Started, we set up Yii2 locally, built a Hello World application, set up a remote server and used GitHub to deploy our code. In part two, we learned about Yii's implementation of its Model View Controller architecture and how to build web pages and forms that collect…
…with the basic structure and conventions of the Magento module files. Now, let's see the file structure we'll need to implement for our custom block. app/etc/modules/Envato_All.xml: It's a file used to enable our custom module. app/code/local/Envato/Recentproducts/etc/config.xml: It's a module configuration file. app/code/local/Envato/Recentproducts/Model/Recentproducts.php: It's a model file which provides the array…
…within your Plugin: /** * Register ACF Field Groups and Fields */ function acf_fields() { if( function_exists( "register_field_group" ) ) { register_field_group(array ( 'id' => 'acf_contact-details', 'title' => 'Contact Details', 'fields' => array ( array ( 'key' => 'field_5323276db7e18', 'label' => 'Email Address', 'name' => 'email_address', 'type' => 'email', 'required'…
…with detailed page source reporting:Tynt reports that between 2 and 6% of page views result in some kind of user action that SiteCTRL can track. If your website has 20 million page views per month, then content most likely leaves your site over 1 million times per month. Wouldn't you…
…with Facebook using the FacebookStrategy module, utilizing the above settings to fetch the user's Facebook profile and display the details in the view.passport.use('facebook', new FacebookStrategy({ clientID : fbConfig.appID, clientSecret : fbConfig.appSecret, callbackURL : fbConfig.callbackUrl }, // facebook will send back the tokens and profile function(access_token, refresh_token, profile, done) { //…
…With Yii2: Getting Started, we set up Yii2 locally, built a Hello World application, set up a remote server, and used Github to deploy our code. In part two, we learned about Yii's implementation of its Model View Controller architecture and how to build web pages and forms that collect…
…within our contacts table. All About WP_List_Table Each post type that has a dashboard uses the WP_List_Table class to render the familiar table and its associated actions: By default, WordPress will display the following columns: checkbox (used to select/deselect posts, which can then have actions applied to them) title author…
…with their own custom taxonomies (instead of blog categories, think Movie Directors, Actors and Genres).While you can manually create a custom post type (CPT) using coding, let's do this the easy way. Install Custom Post Type UI and activate it. This is a very useful and stable plugin that's been…
…with parent and child themes in WordPress, you'll know that the template files in your child theme override those in your parent theme. So for example if your parent theme has a page.php file and you create a new one in your child theme, WordPress will use the one in…