ExpressionEngine® 3 User Guide

Legacy Documentation

You are using the documentation for version 3.5.17. Go here for the latest version or check here for your available upgrades to the latest version.

Javascript Controller Extension Hooks

cp_js_end

cp_js_end()

Allows you add javascript to every Control Panel page.

How it’s called:

$str = $this->extensions->call('cp_js_end');
Returns:Javascript to add to the end of the control panel
Return type:String

New in version 2.1.2.