Skip to content

Instantly share code, notes, and snippets.

import React from "react";
import BellowList from './Components/BellowList';
import {
List,
Show,
Create,
Edit,
Datagrid,
SimpleForm,
SimpleFormIterator,
@shamim2883
shamim2883 / sp-edd-fs.php
Last active September 10, 2020 11:10
Redirect EDD license renew request to Freemius
<?php
add_action('add_meta_boxes', function(){
add_meta_box('sp_edd_fs_metabox', 'Freemius data', 'sp_edd_fs_metabox', 'download', 'side', 'default' );
});
function sp_edd_fs_metabox( $post ){
$plugin_id = get_post_meta( $post->ID, '_sp_edd_fs_plugin_id', true );
$coupon = get_post_meta( $post->ID, '_sp_edd_fs_coupon', true );
#! /bin/bash
# A modification of https://gist.github.com/kloon/6487562
# The difference is that
# 1. Some error fix
# 2. Push only one tag
# 3. Does not download full repo from svn, download only trunk.
# main config
PLUGINSLUG="plugin-slug" # this should be the slug of your main wordpress plugin (folder name)
MAINFILE="plugin-main-file.php" # this should be the name of your main php file in the wordpress plugin
@shamim2883
shamim2883 / gist:1d84ded14f54d2c51347825a7799a610
Created June 25, 2016 06:20
Remove minlength from message title
add_filter( 'fep_form_fields', 'fep_cus_fep_form_fields' );
function fep_cus_fep_form_fields( $fields )
{
unset( $fields['message_title']['minlength'] );
return $fields;
}