Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL Field: is this a valid field type? #1

Closed
claytoncollie opened this issue Jun 26, 2018 · 1 comment
Closed

URL Field: is this a valid field type? #1

claytoncollie opened this issue Jun 26, 2018 · 1 comment

Comments

@claytoncollie
Copy link

'type' => 'url',

I installed rilwis/meta-box ^4.19 via Composer and cannot find the URL field inside the /inc/ folder. But I found this snippet and can use the URL field just fine. Am I missing something here? I would think since the url field is not in my package that I should not be able to declare the url field type.

See the admin code below. Looks like it is declaring the field properly, I'm just not sure HOW it is doing that when the /inc/url.php does not exist.

image

@rilwis
Copy link
Member

rilwis commented Jun 26, 2018

Hi,

Meta Box supports all HTML input types. url is one of them. There's no specific PHP class for it.

See this documentation for more info.

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

No branches or pull requests

2 participants