Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
scarstens authored Nov 16, 2016
1 parent 8175e0b commit 9488d40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@ The following is example code which can be run to create a very basic site optio
'value' => 'Custom Coming Soon Content',
'description' => 'Coming Soon content to be used on Custom Coming Soon page.',
) ) );
// recommended you move this build line into an init action hook priority 20+
$this->site_options_page->build();
```

## Network Options Page

Simply set the `network_page` flag to true, and if you are on a multisite install, your options page will be in the mutlsite network admin navigation. Here is an example:
Simply set the `network_page` flag to true, and if you are on a multisite install, your options page will be in the mutlsite network admin navigation. **Note: plugin must be network activated to show network settings.** Here is an example:
```php
// create network-wide settings page
$this->network_options_page = new sm_options_page( array (
'parent_id' => 'fansided_vip',
'parent_id' => 'settings.php',
'id' => 'network_settings',
'page_title' => 'Network Options',
'menu_title' => 'Network Options',
Expand Down

0 comments on commit 9488d40

Please sign in to comment.