Display custom user profile fields in wordpress

i’m using this answer as a playground for helping you out here. better, than in the comment section. for anybody else stumbling about the same question: i recommended ACF as a plugin for custom fields, as it is well maintained and can add custom fields to anything inside wordpress (posts, pages, attachments, taxonomies…) to get … Read more

Hook to change the site URL

You can filter site_url using a filter – called site_url The hook has the following signature: apply_filters( ‘site_url’, string $url, string $path, string|null $scheme, int|null $blog_id ) You can use it like this: add_filter( ‘site_url’, ‘wpse_381006_custom_site_url’, 10, 1 ); function wpse_381006_custom_site_url( $url ){ if( is_admin() ) // you probably don’t want this in admin side … Read more