Skip to content

Instantly share code, notes, and snippets.

View ericmil87's full-sized avatar
🟢
Available

Eric Milfont ericmil87

🟢
Available
View GitHub Profile
@ericmil87
ericmil87 / custom-notification.php
Created May 29, 2020 21:53 — forked from modemlooper/custom-notification.php
BuddyPress add custom notification
<?php
// this is to add a fake component to BuddyPress. A registered component is needed to add notifications
function custom_filter_notifications_get_registered_components( $component_names = array() ) {
// Force $component_names to be an array
if ( ! is_array( $component_names ) ) {
$component_names = array();
}
// Add 'custom' component to registered components array
@ericmil87
ericmil87 / tinymce-react-nextjs.md
Created June 18, 2022 02:10 — forked from zhangshine/tinymce-react-nextjs.md
NextJs- React - Self hosted TinyMCE
  1. Install (TinyMCE 5.x)
npm install --save tinymce @tinymce/tinymce-react copy-webpack-plugin
  1. Copy static files(tinymce skins) to public folder. Edit file next.config.js
const path = require('path');
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');