Skip to content

Instantly share code, notes, and snippets.

View araeubig's full-sized avatar

André Räubig araeubig

View GitHub Profile
@araeubig
araeubig / acf-wysiwyg-style-select.php
Created January 13, 2024 06:59 — forked from brombal/acf-wysiwyg-style-select.php
Custom Styles Dropdown for ACF Wysiwyg Editors (WP Plugin)
<?php
/**
* Plugin Name: ACF Wysiwyg Style Select
* Description: Custom style select boxes for ACF Wysiwyg editors.
* Author: Alex Brombal
* Author URI: http://www.brombal.com
* Version: 1.1
* License: MIT
*/
@araeubig
araeubig / freemius-api-license-validation.php
Created April 20, 2023 13:09 — forked from vovafeldman/freemius-api-license-validation.php
Validates a license key using Freemius API using the PHP SDK
<?php
// Freemius PHP SDK - https://github.com/Freemius/freemius-php-sdk
require_once './php-sdk-master/freemius/Freemius.php';
define( 'FS__API_SCOPE', 'developer' );
define( 'FS__API_DEV_ID', 1234 );
define( 'FS__API_PUBLIC_KEY', 'pk_YOUR_PUBLIC_KEY' );
define( 'FS__API_SECRET_KEY', 'sk_YOUR_SECRET_KEY' );
// Init SDK.