Skip to content

Instantly share code, notes, and snippets.

@gmazzap gmazzap/my-plugin.php Secret
Created Jan 9, 2018

Embed
What would you like to do?
Usage of objects-hooks-remover without Composer
<?php
/*
* Plugin Name: A plugin name goes here
*/
/**
* Following files are found in the object-hooks-remover repository
* @see https://github.com/inpsyde/objects-hooks-remover
*/
require_once __DIR__ . '/utils.php';
require_once __DIR__ . '/object-hooks-remover.php';
// From here do anything you need to do...
// An example from the article https://inpsyde.com/en/remove-wordpress-hooks
Inpsyde\remove_closure_hook( 'init', SomeClass::class, [ '$foo', '$bar' ] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.