Skip to content

Commit

Permalink
Merge pull request #3 from WordPress-Phoenix/v5
Browse files Browse the repository at this point in the history
update examples to work with v5
  • Loading branch information
scarstens authored Oct 31, 2019
2 parents 459409d + c0bd819 commit 0c83dd3
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 113 deletions.
8 changes: 6 additions & 2 deletions app/admin/class-app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

/**
* Class App
*
* @package Wpop_example_panel
*/
class App {
Expand Down Expand Up @@ -35,11 +36,14 @@ function __construct( $installed_dir, $installed_url, $version ) {
$this->installed_url = $installed_url;
$this->version = $version;

// put your new Class() or add_action() here.
// Initialize the panels class object.
$wpop = new \WordPress_Options_Panels( $this->installed_dir, $this->installed_url );

new Example_Panels(
$this->installed_dir,
$this->installed_url,
$this->version
$this->version,
$wpop
);
}

Expand Down
Loading

0 comments on commit 0c83dd3

Please sign in to comment.