Skip to content

Commit

Permalink
Merge pull request #357 from thomasgriffin/feature/only-load-on-admin
Browse files Browse the repository at this point in the history
Lean loading: only really load TGMPA when on the admin side
  • Loading branch information
GaryJones committed Apr 27, 2015
2 parents 8d8a6a1 + 0969270 commit 821d375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ protected function __construct() {
* @see TGM_Plugin_Activation::styles()
*/
public function init() {

if ( apply_filters( 'tgmpa_load', ! is_admin() ) ) {
return;
}

// Load class strings.
$this->strings = array(
Expand Down

0 comments on commit 821d375

Please sign in to comment.