A safe WordPress related-content feature needs an explicit singular post-type check and a separate published-status filter for every linked item.
Tag Archives: php
How to Add a PHP Enum Cast Without Breaking Existing Logic
A safe pattern for adding Laravel enum casts: inspect the existing enum, update model consumers, and verify hydration and serialization.
Why Arabic Text Needs More Than an Arabic Font in Generated Images
Arabic text in generated images needs both a compatible font and proper shaping and right-to-left handling. Here is how to diagnose and fix each layer.
How to Update a Derived Field in a Filament Form
A practical pattern for updating a read-only, copyable field when a user changes a related Filament form selection.
Why Filament Table Actions Can Lose Their Record Context
A practical lesson on why Filament modal callbacks can receive a null record and how to choose a more reliable edit flow.
How to Troubleshoot a Laravel Passport OAuth Authorization 500 Error
Diagnose and fix a Laravel Passport OAuth authorization endpoint that returns HTTP 500 by checking signing keys, permissions, migrations, caches, and logs.
Different to use WP REST API vs Must-Use Plugin (MU Plugin)
Use of undefined constant STDOUT – assumed ‘STDOUT’ (this will throw an Error in a future version of PHP)
Installing PHP Extension in WP ENV
How to update php cli in DirectAdmin
Check the current version PHP CLI version in shell From the official DirectAdmin help page ,https://help.directadmin.com/item.php?id=2094 the way to install multiple version of PHP in the machine. Set the php1_release to the version The version to set as the php1_release will be the version in CLI You may modify the /usr/local/directadmin/custombuild/options.conf Re-compile all the PHP Continue reading “How to update php cli in DirectAdmin”
