# Preferences

{% hint style="danger" %}
**Please note:** This page is under construction and has not been finished yet.
{% endhint %}

### Introduction

Use the following to retrieve the render class object.&#x20;

```php
$pref = e107::getPref();
```

### Retrieving preferences

Developers may retrieve admin preferences for their theme or plugin, or a core preference using the following method:

```php
e107::pref(type, value);
```

*Example: Load a stored value that was saved in the preferences admin area of the 'faqs' plugin*

```php
$faqPrefs = e107::pref('faqs'); // returns an array.
```

Or load a single preference value.

```php
$FaqPerPage = e107::pref('faqs', 'faqs_per_page');
```

| Type                     | Value (optional)                                       |
| ------------------------ | ------------------------------------------------------ |
| core                     | all core preference values.                            |
| theme                    | preferences of the currently selected front-end theme. |
| (any plugin folder name) | preferences of a particular plugin                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devguide.e107.org/classes-and-methods/preferences.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
