https://github.com/frc/wp-multilingual-options-page
https://github.com/frc/wp-multilingual-options-page
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/frc/wp-multilingual-options-page
- Owner: frc
- Created: 2019-12-03T10:35:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-04T08:54:55.000Z (over 4 years ago)
- Last Synced: 2024-09-15T10:07:28.602Z (almost 2 years ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Multilingual Options Page
================
Create multilingual ACF Options Pages.
The plugin creates a separate options subpage for each language. Works with multisite also when sites have different languages active.
Usage:
```
$multilingual_options_page = FrcMultilingualOptionsPage::get_instance();
$multilingual_options_page->add_page($title, $parent_slug);
```
E.g.
```
$multilingual_options_page->add_page('Footer', 'site-settings');
```
If active languages are Finnish and English, the plugin will create two options subpages: `Footer FI` and `Footer EN` under `site-settings` parent. When creating parent, slug is defined with `menu_slug`.