It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| <?php | |
| // Get the repeater field | |
| $repeater = get_field( 'repeater_field_name' ); | |
| // Get a random rows. Change the second parameter in array_rand() to how many rows you want. | |
| $random_rows = array_rand( $repeater, 2 ); | |
| // Loop through the random rows if more than one is returned | |
| if( is_array( $random_rows ) ){ |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| //Detalles de facturación | |
| function wc_billing_field_strings( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Detalles de facturación' : | |
| $translated_text = __( 'Nuevo Encabezado', 'woocommerce' ); | |
| break; | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 ); |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| # Source for this script: http://www.conigliaro.org/script-to-configure-proper-wordpress-permissions/ | |
| # | |
| # To use this script, supply the full path to your wordpress directory |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20180808 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
| function fadeOut(el){ | |
| el.style.opacity = 1; | |
| (function fade() { | |
| if ((el.style.opacity -= .1) < 0) { | |
| el.style.display = "none"; | |
| } else { | |
| requestAnimationFrame(fade); | |
| } | |
| })(); |
| # Find the largest tables in your MySQL database | |
| SELECT | |
| table_name as "Table", | |
| table_rows as "Rows", | |
| data_length as "Length", | |
| index_length as "Index", | |
| round(((data_length + index_length) / 1024 / 1024),2) as "Size (mb)" | |
| FROM information_schema.TABLES | |
| WHERE table_schema = "%%YOURDATABASE%%" | |
| ORDER BY `Size (mb)` DESC |
| <?php | |
| /** | |
| * Add your Google Fonts here. | |
| * This is specifically for the theme Sage from roots.io and goes in config.php | |
| * Change the font name, weights and styles to what you are using as needed. | |
| */ | |
| define('GOOGLE_FONTS', 'Oswald:400,300,700:latin'); |
| // Modify single product images: add carousel functionality | |
| remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); | |
| add_action( 'woocommerce_before_single_product_summary', function(){ | |
| global $product; | |
| $image_ids = []; | |
| // featured image | |
| if( has_post_thumbnail() ) $image_ids[] = get_post_thumbnail_id(); |
| <?php | |
| //don't add again | |
| // assumes that you have registered your js for the new lightbox and that you understand what a handle is. | |
| // Gallery Support | |
| add_theme_support( 'wc-product-gallery-zoom' ); | |
| add_theme_support( 'wc-product-gallery-slider' ); | |