Refactor admin user profile

Gawd...
This commit is contained in:
Tetrakern 2023-06-03 01:07:48 +02:00
parent c06def75fc
commit d81e913f18
3 changed files with 566 additions and 492 deletions

View File

@ -101,7 +101,10 @@ Fires within the Fictioneer user profile section in the WordPress `wp-admin/prof
* $profile_user (WP_User) The owner of the currently edited profile.
**Hooked actions:**
* `fictioneer_admin_user_fields( $profile_user )` User profile fields. Priority 5.
* `fictioneer_admin_profile_fields_fingerprint( $profile_user )` User fingerprint field. Priority 5.
* `fictioneer_admin_profile_fields_flags( $profile_user )` User flags. Priority 6.
* `fictioneer_admin_profile_fields_oauth( $profile_user )` User OAuth connections. Priority 7.
* `fictioneer_admin_profile_fields_data_nodes( $profile_user )` User data nodes. Priority 8.
* `fictioneer_admin_profile_moderation( $profile_user )` Moderation flags and message. Priority 10.
* `fictioneer_admin_profile_author( $profile_user )` Author page select, support message, and support links. Priority 20.
* `fictioneer_admin_profile_oauth( $profile_user )` OAuth 2.0 account binding IDs. Priority 30.

View File

@ -69,15 +69,15 @@ if ( ! function_exists( 'fictioneer_get_oauth_login_link' ) ) {
* The login link will be escaped and returned with nonce, which is only relevant
* for the first call. Subsequent calls follow the OAuth protocol for security.
* If the OAuth for the channel is not properly set up or the feature disabled,
* and empty string will be returned instead.
* an empty string will be returned instead.
*
* @since Fictioneer 4.7
*
* @param string $channel The channel (discord, google, twitch, or patreon).
* @param string $content Content of the link.
* @param string|false $anchor Optional. An anchor for the return page. Default false.
* @param boolean $merge Optional. Whether to link the account to another.
* @param string $classes Optional. Additional CSS classes.
* @param string $channel The channel (discord, google, twitch, or patreon).
* @param string $content Content of the link.
* @param string|false $anchor Optional. An anchor for the return page. Default false.
* @param boolean $merge Optional. Whether to link the account to another.
* @param string $classes Optional. Additional CSS classes.
*
* @return string OAuth login link or empty string if disabled.
*/

File diff suppressed because it is too large Load Diff