About Gandalf The White

This author has not yet filled in any details.
So far Gandalf The White has created 28 blog entries.

Customize Product Tabs in WooCommerce

In this article, I will show you how to customize WooCommerce tabs. I will start by adding the tab because it contains almost everything we need to know. add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['description_tab'] = array( 'title' => __( 'Description Tab', 'woocommerce' ), 'priority' => 50, 'callback' => 'woo_description_tab_content' ); return

2020-01-08T21:21:22+02:00By |Categories: WordPress|0 Comments

Add WordPress “At a Glance” Items

Sometimes we want to add items to the dashboard widget called "At a Glance". This can be done with the filter dashboard_glance_items. add_filter( 'dashboard_glance_items', 'add_custom_glance_items', 10, 1 ); function add_custom_glance_items( $items = array() ) { $items[] = '<a href="URL"'>My URL</a>'; return $items; } In the example above we use filter to add one item to

2020-01-10T19:01:27+02:00By |Categories: WordPress|0 Comments

Install TypeScript and Hello World Example

In this article, I will show you my first experience with TypeScript. I will follow instructions from the TypeScript website tutorials to create a "Hello World" example. What TypeScript is and reasons to use it can be found here. The first step is to install TypeScript using the command: npm install -g typescript After the

2019-12-08T17:21:41+02:00By |Categories: How To|0 Comments

SQL SELECT Statement

What is SQL SELECT statement? The SQL SELECT statement is used to fetch data from a database table which returns the data in the form of a result table. These result tables are called result sets. Basic syntax SELECT column1, column2, column3 FROM table_name; The query contains two keywords - SELECT and FROM. The SELECT

2019-07-09T22:16:28+03:00By |Categories: Explained Simply|Tags: |0 Comments

Basic Authentication With Nginx

Basic authentication with Nginx requires an installation of Nginx and htpasswd. We have to create a password file with users and passwords and add this file to Nginx. The password file The first step is the creation of a password file with htpasswd tool using the following command: htpasswd -c .htpasswd user The flag -c

2019-05-26T23:28:35+03:00By |Categories: Explained Simply|0 Comments

Nginx – Simple Socket Redirect

Sometimes we have to redirect listening from one port to another. For example, if we have a listener on localhost we want to redirect traffic from listening on other IP to localhost. In this example, we will listen on port 60000 and redirect all traffic to localhost listener with port 8000. server{ listen 60000; listen

2019-05-28T21:53:29+03:00By |Categories: How To|0 Comments

Install htpasswd On CentOS

Htpasswd is a tool used to manipulate flat files containing usernames and passwords for basic authentication of HTTP. In Cent OS htpasswd is part of httpd-tools pack. In order to install it, you must enter (root access required): yum install httpd-tools After entering the command you will see a result similar to the one shown

2019-04-11T07:40:29+03:00By |Categories: How To|0 Comments

Access Modifiers in C#

What is an access modifier? Access modifiers are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. Access modifiers are a specific part of programming language syntax used to facilitate the encapsulation of components. Which are the access modifiers in C#? There are 6 types of C# modifiers: public - Fully accessible. internal - Accessible only within the containing

2019-05-18T23:21:46+03:00By |Categories: C#|Tags: |0 Comments
Go to Top