Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-03-01 03:06:37

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 243
Website

How to target register_callback to Plugins tab?

This plugin code example shows how register_callback doesn’t work when Plugins tab is opened:

register_callback('kuo_plugins_test','admin_side');
function kuo_plugins_test() {
var_dump('SECTION:'.$GLOBALS['event']);
}

Is there some other callback to use to target Plugins section instead of admin_side?

Offline

#2 2016-03-01 04:24:29

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,381
Website GitHub Mastodon

Re: How to target register_callback to Plugins tab?

No. Due to security concerns plugins are not loaded when the plugin tab is active.

Offline

#3 2016-03-01 04:40:58

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 243
Website

Re: How to target register_callback to Plugins tab?

Alright, thank you!

Offline

Board footer

Powered by FluxBB