Skip to content

Instantly share code, notes, and snippets.

@panoslyrakis
panoslyrakis / bannedwords.csv.zip
Last active July 21, 2022 17:52
[Forminator] - Banned words
@panoslyrakis
panoslyrakis / wpmudev-mp-countries-taxrates.php
Last active February 22, 2022 15:28
Set taxes per country for MarketPress. Please make sure that "mp_manage_price_tax/tax_rate" filter has been added in mp_manage_price_tax() function
<?php
/*
Plugin Name: Custom taxes for MarketPress
Plugin URI: https://premium.wpmudev.org/
Description: Overrides taxes for products and cart. Can use custom tax rates per country. You can use "WPMUDEV_MP_Country_Taxes/get_countries_info" filter to deit countries and rates
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / tests.php
Created February 22, 2022 15:11
This is a test gist file
<?php
echo "added to repo via PHPStorm using PAT";
// add code
echo "Nice works.";
@panoslyrakis
panoslyrakis / test-file.js
Last active January 10, 2022 11:00
Testing again
// add code
alert( 'Tho it is working for me' );
@panoslyrakis
panoslyrakis / file3.php
Last active January 10, 2022 09:07
Test
// add code
&lt;?php
echo &#039;1&#039;;
@panoslyrakis
panoslyrakis / replace-woo-order-customer-ids.php
Created December 3, 2021 16:00
[General] - Replace Woocommerce orders customer ids.
<?php
/**
* Plugin Name: [General] - Replace Woocommerce orders customer ids.
* Description: [General] - Replace Woocommerce orders customer ids.
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
return;
@panoslyrakis
panoslyrakis / ps-checkout-shortcode.php
Created August 5, 2017 16:21
Provides a shortcode to add the Pro Sites checkout form in any page
<?php
/*
Plugin Name: Pro Sites - Checkout Shortcode
Plugin URI: https://premium.wpmudev.org/
Description: Provides a shortcode to add the Pro Sites checkout form in any page
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
@panoslyrakis
panoslyrakis / ms-default-registration-page.php
Last active November 6, 2018 17:38
Membership2 - Use default registration page
<?php
/*
Plugin Name: Membership2 - Use default registration page
Plugin URI: https://premium.wpmudev.org/
Description: Use the WordPress default registration page
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@panoslyrakis
panoslyrakis / convert-array-to-query-string.php
Last active August 31, 2018 19:49
Convert an array to a query string
<?php
/**
* Plugin Name: Convert array to query string
* Plugin URI: https://gist.github.com/panoslyrakis
* Description: Convert an array to a query string. Usefull when you have a huge array with several keys and need it be converted into query string.
* Author: Panos Lyrakis
* Author URI: https://gist.github.com/panoslyrakis
* License: GPLv2 or later
*/