Custom strings plugin similar to Polylang – Translations?

[ad_1]

Hi,

I'm searching for a plugin where I can map an editable string to an ID in order to use it in PHP code. It should be similar to the "Translations" section in Polylang: a table with all the IDs and a textfield next to it where the client can change the text. In different places in my theme code I want to output those texts (like `pll__(string)`)

As my page is not using a different languages I don't want to use Polylang for it if I don't have to.

Ideally it should be a simple table in the backend with two columns: ID – Text, a PHP method that will return the text when I call it with the ID. I can add new rows or delete them.

I can build it myself but if there is anything like this I could save some time 🙂

[ad_2]
1 Comment
  1. You might want to check out the “ACF Options Page” combined with ACF(Advanced Custom Fields). It allows you to create a simple admin page where you can set up fields for your IDs and texts.

    You can then easily retrieve these values in your theme code using `get_field(‘your_field_name’)`. It’s not exactly like Polylang, but it should give you the functionality you need without the overhead of a full translation plugin.

    If you’re comfortable with some custom coding, this could save you time and keep things lightweight.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer