Skip to content

Commit 821d375

Browse files
committed
Merge pull request #357 from thomasgriffin/feature/only-load-on-admin
Lean loading: only really load TGMPA when on the admin side
2 parents 8d8a6a1 + 0969270 commit 821d375

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

class-tgm-plugin-activation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ protected function __construct() {
220220
* @see TGM_Plugin_Activation::styles()
221221
*/
222222
public function init() {
223+
224+
if ( apply_filters( 'tgmpa_load', ! is_admin() ) ) {
225+
return;
226+
}
223227

224228
// Load class strings.
225229
$this->strings = array(

0 commit comments

Comments
 (0)