Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

Based on information gathered HEREHERE and HERE; I was able to put something together.

Based on information gathered HERE and HERE; I was able to put something together.

Based on information gathered HERE and HERE; I was able to put something together.

added 3 characters in body
Source Link
josh
  • 1.1k
  • 7
  • 9

NOTE: See how we are hooking to wp_headadmin_head here? We want to make sure this doesn't run on every admin page. So, the first part of this code block will check the current page, and only run the code if we are on the profile page.

NOTE: See how we are hooking to wp_head here? We want to make sure this doesn't run on every admin page. So, the first part of this code block will check the current page, and only run the code if we are on the profile page.

NOTE: See how we are hooking to admin_head here? We want to make sure this doesn't run on every admin page. So, the first part of this code block will check the current page, and only run the code if we are on the profile page.

noted admin_head hook
Source Link
josh
  • 1.1k
  • 7
  • 9

NOTE: See how we are hooking to wp_head here? We want to make sure this doesn't run on every admin page. So, the first part of this code block will check the current page, and only run the code if we are on the profile page.

Now... that's great. Placement is Perfect!! But wait... now our data is not saving when we update the fields. Fret not!! We have another hook for that:

Now... that's great. Placement is Perfect!! But wait... now our data is not saving when we update the fields. Fret not!! We have another hook for that:

NOTE: See how we are hooking to wp_head here? We want to make sure this doesn't run on every admin page. So, the first part of this code block will check the current page, and only run the code if we are on the profile page.

Now... that's great. Placement is Perfect!! But wait... now our data is not saving when we update the fields. Fret not!! We have another hook for that:

Source Link
josh
  • 1.1k
  • 7
  • 9
Loading