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
// file: | |
///plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wcs-download-handler.php | |
/** | |
* Grant downloadable file access to any newly added files on any existing subscriptions | |
* which don't have existing permissions pre WC3.0 and all subscriptions post WC3.0. | |
* | |
* @param int $product_id | |
* @param int $variation_id | |
* @param array $downloadable_files product downloadable files |
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
/* | |
vanbo/wc-css-make-storefront-product-tabs-horizontal | |
credit: https://gist.github.com/vanbo/c05e9b9512bd53e3680c82e1c6e4e6a3 | |
*/ | |
.product .woocommerce-tabs ul.tabs { | |
width: 100%; | |
float: none; | |
margin-right: 5.8823529412%; | |
} |
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 | |
/* | |
Plugin Name: R Debug | |
Description: Set of dump helpers for debug. | |
Author: Andrey "Rarst" Savchenko | |
Author URI: https://www.rarst.net/ | https://gist.github.com/Rarst/1739714 | |
License: MIT | |
*/ |
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 | |
/** | |
* How to Allow Non-Admin Users to Access WordPress Customizer. Published on the qSandbox - https://qsandbox.com/675 | |
* <a href="https://qsandbox.com/?utm_source=qs_blog_code&utm_medium=p675" title="Free Test/Staging WordPress site by qSandbox.com">Free Test/Staging WordPress site by qSandbox.com</a> | |
* @param array $all_caps | |
* @param array $cap | |
* @param array $args | |
* @return array array | |
* @see https://codex.wordpress.org/Plugin_API/Filter_Reference/user_has_cap |
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 | |
/** | |
* This class is used in Orbisius Price Changer for WooCommerce | |
* This premium WooCommerce extension allows you to change product prices (up/down) for all products or for a selected category and its subcategories. | |
* You can review them before actually making the changes. | |
* | |
* @see http://club.orbisius.com/products/wordpress-plugins/woocommerce-extensions/orbisius-woocommerce-ext-price-changer/ | |
* @author jaywilliams | myd3.com | https://gist.github.com/jaywilliams | |
* @author Svetoslav Marinov (SLAVI) | http://orbisius.com |
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
Class HTML_Util { | |
/** | |
* Usage: HTML_Util::array2attribs(); | |
* @param array $attributes | |
* @param bool $make_them_data will prefix each key with 'data-' prefix so it's acessible via $('#elem').data(); | |
* @return string | |
* @see http://stackoverflow.com/questions/18081625/how-do-i-map-an-associative-array-to-html-element-attributes | |
*/ | |
public static function array2attribs($attributes = array(), $make_them_data = 0) { | |
$pairs = array(); |
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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
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 | |
/* | |
This code allows you to make some WooCommerce Checkout Fields optional. | |
Blog post http://orbisius.com/link/3710 | |
Author: Svetoslav Marinov (Slavi) | |
Author URI: http://orbisius.com | |
*/ | |
/* | |
Installation |
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
; configuration for fake sendmail | |
; if this file doesn't exist, sendmail.exe will look for the settings in | |
; the registry, under HKLM\Software\Sendmail | |
[sendmail] | |
; you must change mail.mydomain.com to your smtp server, | |
; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) | |
; emails delivered via IIS's pickup directory cause sendmail to |
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
How To Setup Let's Encrypt SSL certificate for a news Site and Fix Mixed Content Error | |
/////////////////////////////////// | |
// put this in wp-config.php | |
// orbisius.com | |
// GPL | |
ob_start( 'orbisius_custom_link_corrector_global' ); | |
/** | |
* This is used here to correct all links that are not ssl |
NewerOlder