Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Last active March 12, 2021 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/dc3227b9cebec79fa983261827df7485 to your computer and use it in GitHub Desktop.
Save kimcoleman/dc3227b9cebec79fa983261827df7485 to your computer and use it in GitHub Desktop.
Change the display name to default to LAST FIRST using the Force First Last WordPress plugin.
<?php
/*
* Change the display name to default to LAST FIRST using the Force First Last WordPress plugin.
* https://wordpress.org/plugins/force-first-last/
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
*/
function my_ffl_display_name_order( $display_name_order, $first_name, $last_name ) {
$display_name_order = array( $last_name, $first_name );
return $display_name_order;
}
add_filter( 'ffl_display_name_order', 'my_ffl_display_name_order', 15, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment