Skip to content

Instantly share code, notes, and snippets.

View CarlaFeldens's full-sized avatar

cfeldens CarlaFeldens

  • ADMX BRASIL
  • Recife
  • 20:13 (UTC -03:00)
View GitHub Profile
@CarlaFeldens
CarlaFeldens / functions.php
Created November 16, 2024 19:59 — forked from hansschuijff/functions.php
WooCommerce Custom Fields for Simple & Variable Products
/*
* Add our Custom Fields to simple products
*/
function mytheme_woo_add_custom_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
// Text Field
@CarlaFeldens
CarlaFeldens / install-wp-plugins.php
Created November 16, 2024 19:59 — forked from hansschuijff/install-wp-plugins.php
Programmatically install and activate wordpress plugins
<?php
/**
* Plugin Name: Activate required plugins.
* Description: Programmatically install and activate plugins based on a runtime config.
* Version: 1.0
* Author: Hans Schuijff
* Author URI: http://dewitteprins.nl
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
@CarlaFeldens
CarlaFeldens / install-wp-plugins.php
Created November 16, 2024 19:57 — forked from squarestar/install-wp-plugins.php
Programmatically install and activate wordpress plugins
<?php
/**
* Programmatically install and activate wordpress plugins
*
* Usage:
* 1. Edit the $pluginSlugs array at the beginning of this file to include the slugs of all the
* plugins you want to install and activate
* 2. Upload this file to the wordpress root directory (the same directory that contains the
* 'wp-admin' directory).
* 3. Navigate to <your-domain-wordpress-root>/install-wp-plugins.php (If wordpress is installed