Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / Hooks / signup_get_available_languages

apply_filters( 'signup_get_available_languages', string[] $languages )

Filters the list of available languages for front-end site sign-ups.

Contents

  • Description
  • Parameters
  • Source
  • Related
    • Used By
  • Changelog
  • User Contributed Notes

Description

Passing an empty array to this hook will disable output of the setting on the sign-up form, and the default language will be used when creating the site.

Languages not already installed will be stripped.


Top ↑

Parameters

$languages string[]
Array of available language codes. Language codes are formed by stripping the .mo extension from the language file names.

Top ↑

Source

File: wp-signup.php. View all references

$languages = (array) apply_filters( 'signup_get_available_languages', get_available_languages() );

View on Trac View on GitHub


Top ↑

Related

Top ↑

Used By

Used By
Used By Description
signup_get_available_languages() wp-signup.php

Retrieves languages available during the site/user sign-up process.


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.