This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Show ACF field names in WP Admin | |
// @match http://*/wp-admin/* | |
// @match https://*/wp-admin/* | |
// @match http://*/*/wp-admin/* | |
// @match https://*/*/wp-admin/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Run it like so: | |
* | |
* $text = 'Your text'; | |
* echo remove_greek_accents( $text ); | |
*/ | |
function remove_greek_accents( $string ) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A bash script to batch backup a server's WordPress databases with WP-CLI. It requires WP-CLI, obviously (https://wp-cli.org/). | |
# The script will search for all WordPress installations under a given directory and will backup their databases. You can declare more than one such directories. | |
# You don't have to modify the script every time you add a new site. As long as the new site is under a declared parent directory, its database will be backed up. | |
# After creating the file, don't forget to make it executable by doing: | |
# chmod +x wp-cli_batch_db_backup.sh | |
# Also, you might want to add this in a cron job for scheduled backups. | |
# Set PATH environment variable |
NewerOlder