-
Find files on system containing specific text
To search for text inside of files and show a snippet containing the match, use the following command: Such as: If your search parameter includes spaces or special characters, make sure to enclose it in quotes: To ignore “certain permission denied” errors, exclude them from being output: To exclude all errors from being output: To…
-
Search for a file by name
Search current directory for file with exact name: Or by wildcard:
-
Setting different homepage for logged-in users
First, make sure you’ve defined a homepage inĀ Settings -> Reading To show a different homepage for users who are logged in, add this snippet to your site via functions.php or your favorite code snippets plugin: