Skip to content

Instantly share code, notes, and snippets.

View chetansatasiya's full-sized avatar
🏠
Working from home

Chetan Satasiya chetansatasiya

🏠
Working from home
View GitHub Profile
C:\vagrant-local>vagrant up
__ __ __ __
\ V\ V\ V / Varying Vagrant Vagrants
\_/\_/\_/ v2.2.1-git::master
Docs: https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
Dashboard: http://vvv.test
Bringing machine 'default' up with 'virtualbox' provider...
@chetansatasiya
chetansatasiya / functions.php
Created September 9, 2019 09:53
Add Custom Notification
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 'insert_post_comment' component to registered components array
array_push( $component_names, 'insert_post_comment' );