Category: Web Development
Free Online PO File Translator (automatic)
https://www.ajexperience.com/po-translator/
Works great in combination with the WordPress plugin Loco Translate
https://wordpress.org/plugins/loco-translate/
- Create a New translation language in Loco
- Copy-paste the generated .po file on the website
- Wait until translations is done and copy-paste back
- Sync in Loco
- Save
Syndication test
Syndication
test | ja |
tsea | no |
Color support in acf-(composer) blocks
In MyBlock.php
public $supports = [ ... 'color' => true ];
Or more fine tuned:
public $supports = [ ... 'color' => [ 'background' => true, 'text' => false, ] ]Read More
The progressive plan for customizing the WordPress Editor for clientx (sep 2020)
Victor Ramirez talks about the approach here: https://www.youtube.com/watch?v=3o66SvY9G1k&t=91s
The plan itself was posted on Twitter. It is a bit old, but it sounds like decent approach
Level 1
- Style the editor and core blocks to match the client theme.
- Disable custom colors & fonts to keep the client on brand
- Disable all core blocks your client doesn’t need per post type. Too many options are confusing. (Optional)
Blade Icons
Blade Icons
A package to easily make use of SVG icons in your Laravel Blade views. Originally “Blade SVG” by Adam Wathan.
Turn…
<!-- camera.svg -->
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"/>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 13a3 3 0 11-6 0 3 3 0 016 0z"/>
</svg>
Into…
<x-icon-camera class="w-6 h-6" />
Or into…
@svg('camera', 'w-6 h-6')
Search all 84,305 Blade Icons:
https://blade-ui-kit.com/blade-icons#search
But for a better overview you may want to go to the homepages of the icons set instead. For example:
Read MoreAdding custom columns to custom post types
The simple solution:
register_taxonomy()
now has support for that built in via the show_admin_column
setting passed via arguments. developer.wordpress.org/reference/functions/register_taxonomy.
'show_admin_column' => true,
If you aren’t registering the taxonomy yourself, you can still alter the args via the register_taxonomy_args
filter developer.wordpress.org/reference/hooks/register_taxonomy_args
Roots Dev’s Favorite WordPress Plugins and Utilities
https://roots.io/favorite-wordpress-plugins-and-utilities/
I asked Brandon Nifong, Mike Spainhower, Craig, Evan Mattson, Nathan Knowler, and Matt Mirus for their recommendations on WordPress plugins and any relevant Composer packages they use on their sites. Here’s what our list of most frequently used WordPress plugins looks like!
Free WordPress plugins
- Better Search Replace for performing a search/replace on the database
$ composer require wpackagist-plugin/better-search-replace
- Breadcrumb NavXT for breadcrumb trails
$ composer require wpackagist-plugin/breadcrumb-navxt
- Disable Comments for globally disabling comments on any post type
$ composer require wpackagist-plugin/disable-comments
- Duplicate Post for cloning posts from any post type
$ composer require wpackagist-plugin/duplicate-post
- Easy WP SMTP for configuring WordPress to send emails through any SMTP server
$ composer require wpackagist-plugin/easy-wp-smtp
- HTML Forms for straightforward and flexible forms in WordPress
$ composer require wpackagist-plugin/html-forms
- Imsanity for automatically resizing large image uploads
$ composer require wpackagist-plugin/imsanity
- Intervention for cleaning up and customizing the wp-admin
$ composer require soberwp/intervention
- Post Type Switcher for reassigning any post to a new post type
$ composer require wpackagist-plugin/post-type-switcher
- Query Monitor for WordPress dev tools
$ composer require wpackagist-plugin/query-monitor
- Restricted Site Access for enforcing user logins or whitelisting IPs for access
$ composer require wpackagist-plugin/restricted-site-access
- Safe Redirect Manager for managing redirects
$ composer require wpackagist-plugin/safe-redirect-manager
- Safe SVG for allowing SVG uploads
$ composer require wpackagist-plugin/safe-svg
- Simple Page Ordering for re-ordering any type of page or post with drag and drop
$ composer require wpackagist-plugin/simple-page-ordering
- Stream for logging activity on your WordPress install
$ composer require wpackagist-plugin/stream
- The SEO Framework for fast SEO with automated titles and descriptions
$ composer require wpackagist-plugin/autodescription
- WPBruiser for preventing spam comments and brute force attacks
$ composer require wpackagist-plugin/goodbye-captcha
- WP Stage Switcher for switching between different environments from the admin bar (by Roots)
$ composer require roots/wp-stage-switcher
- WP Term Order for re-ordering any term with drag and drop
$ composer require wpackagist-plugin/wp-term-order
- WP User Avatars for allowing users to upload & select their own avatars
$ composer require wpackagist-plugin/wp-user-avatars
- WP User Profiles for a different way to edit users
$ composer require wpackagist-plugin/wp-user-profiles
- WP-Optimize for automatically cleaning your WordPress database
$ composer require wpackagist-plugin/wp-optimize
Paid WordPress plugins
- Admin Columns Pro for managing admin columns
- Advanced Custom Fields Pro for managing fields and options
- FacetWP for advanced filtering
- Migrate DB Pro for database migrations
- Soil for cleaner WordPress markup (by Roots)
Utilities/Composer packages
- ACF Builder for creating ACF fields (also see log1x/acf-builder-cheatsheet)
$ composer require stoutlogic/acf-builder
- ACF Fluent for querying and presenting ACF fields (also see log1x/acf-fluent-helpers)
$ composer require samrap/acf-fluent
- Cortex for implementing a routing system in WordPress (also read Life of a Front-end WordPress Request by the author)
$ composer require brain/cortex
- Extended CPTs for quickly creating WordPress custom post types and taxonomies
$ composer require johnbillion/extended-cpts
- WP Cache Remember for working with the WordPress object cache and transients
$ composer require stevegrunwell/wp-cache-remember
- WP Plugin Activation Manifest for controlling the activation state of individual plugins based on environment
$ composer require primetime/wp-plugin-activation-manifest
Remove jquery Migrate logging
function remove_jquery_migrate( $scripts ) { if ( ! is_admin() && isset( $scripts->registered['jquery'] ) ) { $script = $scripts->registered['jquery']; if ( $script->deps ) { $script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) ); } } } add_action( 'wp_default_scripts', 'remove_jquery_migrate' );