Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Added support for "Number" field type. Bumped version to 2.1.2. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Luc45
Copy link

@Luc45 Luc45 commented Jan 18, 2019

This PR adds support for "Number" field type.

By default, it allows negative and positive numbers. To allow only positive numbers, one can add 'sanitize_callback' = 'absint' when calling add_setting() on the field.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant