Quantcast
Channel: Multilingual – BDWM
Browsing latest articles
Browse All 19 View Live

Image may be NSFW.
Clik here to view.

How many languages does your website speak?

Although most people understand and speak English to some extent, it is far from the only language in the world. If you really want to reach trough to your customers, you have to talk to them in their...

View Article



WordPress Filterable Admin Columns for Custom Posts

After reading the great article on Ractoon.com on how to create sortable admin columns for custom posts, I decided I wanted to take things a step further and add a select box to the top of the posts...

View Article

How to hide menu items from wordpress admin for your clients

Just use the Adminimize plugin! If you don’t wanna, here are some functionsfunction remove_menus(){ if (!current_user_can('administrator')) { remove_menu_page( 'index.php' ); remove_menu_page(...

View Article

Xdebug Remote debugging with PHPStorm and Digital Ocean Droplet

Set up a remote server with PHP and XDebug installed. Because firewalls will be firewalls, we probably will need an SSH tunnel set up to the server in order for XDebug to work. So, better say goodby...

View Article

setting up PHPUnit for plugin development on Local by Flywheel

Get local by flywheel Add a new local site Custom install PHP 7.3 nginx Mysql 5.6 WP user: admin WP password: admin Go to WP admin Install and activate the plugin you would like to test SSH into the...

View Article


Gutenberg: how to make post categories required?

This is how: const { select, dispatch, subscribe } = wp.data; const getCategories = () => select( 'core/editor' ).getEditedPostAttribute( 'categories' ); let categories = getCategories();...

View Article

Gutenberg: custom validation

This is a work in progress. The plan is to list all possible validation patterns for custom blocks. At the point of writing it seems like Gutenberg does not provide an out-of-the-box validation...

View Article

Dynamically populate a Contact Form 7 dropdown list (or any other input field)

With Contact Form 7 the normal way to create a drop down list, looks like this: [select upcoming-gigs "MAY 07 - NEW ORLEANS, LA" "MAY 09 - AUSTIN, TX" "MAY 12 - HOUSTON, TX"] That’s all very nice, but...

View Article


Image may be NSFW.
Clik here to view.

WordPress core development with Xdebug and VS Code

TL;DR: Set LOCAL_PHP_XDEBUG=true in your .env fileAdd these lines in tools/local-env/php-config.ini:xdebug.remote_enable=1xdebug.remote_connect_back=1Add "/var/www": "${workspaceRoot}" in your...

View Article

Browsing latest articles
Browse All 19 View Live




Latest Images