Skip to content

Instantly share code, notes, and snippets.

Svetoslav Marinov lordspace

Block or report user

Report or block lordspace

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lordspace / qs_blog675_grant_customizer_access.php
Last active Dec 7, 2019
How to Allow Non-Admin Users to Access WordPress Customizer. Check the latest version on the qSandbox -
View qs_blog675_grant_customizer_access.php
* How to Allow Non-Admin Users to Access WordPress Customizer. Published on the qSandbox -
* <a href="" title="Free Test/Staging WordPress site by">Free Test/Staging WordPress site by</a>
* @param array $all_caps
* @param array $cap
* @param array $args
* @return array array
* @see
lordspace / wc-css-make-storefront-product-tabs-horizontal
Created May 23, 2018 — forked from vanbo/wc-css-make-storefront-product-tabs-horizontal
WooCommerce: CSS to make Storefront product tabs horizontal again
View wc-css-make-storefront-product-tabs-horizontal
.product .woocommerce-tabs ul.tabs {
width: 100%;
float: none;
margin-right: 5.8823529412%;
lordspace / openssl.cnf
Created May 7, 2019
This file is from Apache installation and it's referenced by this tutorial : How to Generate Certificate Authority (CA) Key and SSL Certificate with OpenSSL at
View openssl.cnf
# 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 = .
lordspace / csv.php
Last active Mar 14, 2019 — forked from jaywilliams/csv_to_array.php
a class to read and write CSV
View csv.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
* @author jaywilliams | |
* @author Svetoslav Marinov (SLAVI) |
lordspace / orbisius_quick_fix_wc_ext_opt_co_fields.php
Created Aug 7, 2017
This code allows you to make some WooCommerce Checkout Fields optional.
View orbisius_quick_fix_wc_ext_opt_co_fields.php
This code allows you to make some WooCommerce Checkout Fields optional.
Blog post
Author: Svetoslav Marinov (Slavi)
Author URI:
lordspace / array2attribs
Created Jul 21, 2014
Here is a PHP class that allows you to create HTML attributes from a php array. If you pass the second parameter the key will be prefixed with 'data-' prefix so they can be access via jQuery later.
View array2attribs
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
public static function array2attribs($attributes = array(), $make_them_data = 0) {
$pairs = array();
lordspace / Fake Sendmail Configuration Mandrill
Created Aug 26, 2014
Fake Sendmail Configuration for Using it with Mandrill. Uses non-ssl version as the SSL one worked OK on CLI but hanged when accessed via Apache
View Fake Sendmail Configuration Mandrill
; configuration for fake sendmail
; if this file doesn't exist, sendmail.exe will look for the settings in
; the registry, under HKLM\Software\Sendmail
; you must change 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
lordspace / set_up_ssl_for_wp_news_site.txt
Last active Dec 19, 2016
These are instructions related to this article (How to Properly Set up an SSL Certificate for a News Site Based on WordPress)
View set_up_ssl_for_wp_news_site.txt
How To Setup Let's Encrypt SSL certificate for a news Site and Fix Mixed Content Error
// put this in wp-config.php
// GPL
ob_start( 'orbisius_custom_link_corrector_global' );
* This is used here to correct all links that are not ssl
View my-spy.php
* This file will send you alerts when your clients install/uninstall plugins
* Usage: Save this as wp-content/mu-plugins/my-spy.php
* License: GPL
* @author
* Use it at your own risk. You may have to disclose this in your terms of service.
* Check with a laywer first.
lordspace / send_mail_delayed.php
Created Jan 4, 2014
This function schedules an email by passing -odd parameters to sendmail. Those emails will be processed depending on: /etc/sysconfig/sendmail (using 1h) if sendmail is running all the time otherwise you may have to start sendmail via cron
View send_mail_delayed.php
* This function schedules an email by passing -odd paramaters to sendmail.
* Those emails will be processed depending on: /etc/sysconfig/sendmail (using 1h)
* if sendmail is running all the time.
* @param string $email recipient
* @param string $subject - subject
* @param string $message - the message
You can’t perform that action at this time.