Blog

What is a WordPress Theme Text Domain ?

In this example ‘my-theme-textdomain’ is the defined as textdomain for the Theme. Text Domain is used to make the Theme translatable. (Codex reference: load_theme_textdomain()). Define the Theme’s textdomain [crayon-5e56a61158379156469261-i/] Define translatable strings in the template. This is done using one of a few translation functions: __() (for returned strings), _e() (for echoed strings), and _x()/_ex() …

Using WP-CLI : A Command line interface for WordPress

WP-CLI – A command line interface for WordPress is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser. Setting up path for mysql command (For MAC OS Terminal) [crayon-5e56a61158db8281315597-i/] Configure wp-config.php file at core WordPress [crayon-5e56a61158dc4843422116-i/] Start installation of WordPress for …

Resync git repo with new gitignore file

After adding .gitignore file use following commands [crayon-5e56a6115938c487781929/] Make sure to commit first your changes you want to keep. The –cached option will keep your files untouched on your disk though. Other more solution: [crayon-5e56a61159398403136886-i/] Files with space in their paths In case you get an error message like fatal: path spec ‘…’ did not …