Get theme directory in WordPress
WordPress comes with a number of useful functions you can use to get the current theme path or URL. You can run the following PHP code to list their values:
PHP
Example response:
Shell
Reference: Get Theme Directory In WordPress – Paulund
[ Back to Top ]
Check free space on your server
Very useful snippet to check the free space on your server
PHP
Example response:
Shell
[ Back to Top ]
Rename files with garbled filename
The command ls -i
shows the inode number of files
PHP
The command find -inum
returns the filepath of a specific inode in the file system
PHP
With the parameter and the placeholder -exec {}
, the command apply the second part to rename the specific inode file
PHP
[ Back to Top ]
If you like this post, please share it with your Facebook and Twitter. You might also support me by donating via Ko-fi.