giliopoulos
Forum Replies Created
-
Is there a way to see the current settings in a readable format ? Can i for example extract my permissions from tables on the database? If yes which are these tables ?
Forum: Plugins
In reply to: WordPress override CM Tooltip plugin functionFinally i found a working solution for me. So i drop a line here in case someone else finds it useful.
I read this https://iandunn.name/the-right-way-to-customize-a-wordpress-plugin/ guide, which describes the alternatives someone has, if he wants to override a plugin functionality.
In my case the solution was similar as the one described in the “Override their callbacks” section. I downloaded his example that overrides google-authenticator plugin and followed pretty much the same tactic.
Especially for the cm tooltp plugin that i wanted to customize removing the original hooks and re-adding them if my requirements are met worked for me.
remove_filter('the_content',array(CMTooltipGlossaryFrontend::$calledClassName, 'cmtt_glossary_parse'), 9999); remove_filter('the_content', array(CMTooltipGlossaryFrontend::$calledClassName, 'cmtt_glossary_createList'), 9998); remove_filter('the_content', array(CMTooltipGlossaryFrontend::$calledClassName, 'cmtt_glossary_addBacklink'), 10000);and register my callback that enables again the original plugin functions if my requirements are met using the following code
//if (my_condition) add_filter('the_content', array(CMTooltipGlossaryFrontend::$calledClassName, 'cmtt_glossary_parse'), 9999);