Search and Replace in VSCode, change PHP array for object.
Activate Use Regular Expression
SEARCH:
($row)["(.+?)"]
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
| if ( ! class_exists( 'WC_KIA_Class_Email', false ) ) : | |
| /** | |
| * A custom Order WooCommerce Email class | |
| * | |
| * @since 0.1 | |
| * @extends \WC_Email |
A link to help on the language (it's got lots of errors in the actual preparation and ingredients!) http://www.saveur.com/article/Recipes/Classic-Locro-Hominy-Stew
| <?php | |
| /* | |
| * XSS filter, recursively handles HTML tags & UTF encoding | |
| * Optionally handles base64 encoding | |
| * | |
| * ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011 | |
| * A MAINTAINED & BETTER ALTERNATIVE => kses | |
| * https://github.com/RichardVasquez/kses/ | |
| * | |
| * This was built from numerous sources |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Alpine Ajax test</title> | |
| </head> | |
| <body> | |
| <h1>Users API Retrieval Test</h1> |
| <?php | |
| /** | |
| * Create product | |
| */ | |
| function csdev_new_simple_product() | |
| { | |
| $product = new WC_Product_Simple(); | |
| $product->set_name('test 2'); |
| <?php | |
| /** | |
| * Source is | |
| * https://stackoverflow.com/a/2068407/827376 | |
| */ | |
| /* VIA HTTP */ | |
| header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1. | |
| header("Pragma: no-cache"); // HTTP 1.0. | |
| header("Expires: 0"); // Proxies. |
| <?php // no need to use this line. | |
| /** | |
| * Utility to get information on installed plugins. | |
| * | |
| * Returns an array of all installed plugins and indicates which are | |
| * plugin are active and which are not. Array is keyed by the plugin's | |
| * folder/slug.php (which is how WP looks at them) and includes the | |
| * name, version, and true/false whether it is active or not. | |
| * |
| <?php | |
| /** | |
| * A simple function that uses mtime to delete files older than a given age (in seconds) | |
| * Very handy to rotate backup or log files, for example... | |
| * | |
| * $dir String whhere the files are | |
| * $max_age Int in seconds | |
| * return String[] the list of deleted files | |
| */ |
| Find: !\[(.*?)\]\((.*?)\) | |
| Replace: <img alt="$1" src="$2"> |