Reference

Guide

Options

Options are registered with the options extension. The extensions accepts an array of options.

Kirby::plugin('yourname/yourplugin', [
  'options' => [
    'plugin.option' => 'some-value'
  ]
]);

Config options can be used anywhere in Kirby with the $kirby->option() method:

$kirby->option('yourname.yourplugin.plugin.option');

Or with the option helper:

option('yourname.yourplugin.plugin.option');