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

Sort site names alphabetically #6

Open
skydev2020 opened this issue Aug 28, 2020 · 1 comment
Open

Sort site names alphabetically #6

skydev2020 opened this issue Aug 28, 2020 · 1 comment

Comments

@skydev2020
Copy link

I have a Wordpress multisite and it has more than 100 sites.
And when I try to find the specific sites to a domain, I can't find proper sites.
Screenshot_1
I checked the code and found this snippet under includes/class-domainer-manager.php
static function setup_domain_fields() {
$sites = get_sites( array(
'number' => 0, // unlimited
) );
As get_sites doesn't provide an option to order by blogtitle, we might need to write custom code after we get the $sites value

Do you have any plan to sort by title?

@dougwollison
Copy link
Owner

Looks like I can just run the resulting $site_options list through asort() and take care of it that way.

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