frc/wp-multilingual-options-page

Create ACF Options Pages for all languages

Installs: 14 536

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:wordpress-plugin

0.0.3 2022-02-04 08:53 UTC

This package is auto-updated.

Last update: 2024-11-04 14:27:52 UTC


README

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.