*

umimo

  • ***
  • 88 posts
how override theme function
« on: December 31, 2023, 11:18:28 AM »
Hi,

how override theme function ?  CHILD theme


function eps_user_profile_img_url($id = null) {
  return (string) osc_apply_filter('user_profile_img_url', osc_base_url(). 'oc-content/uploads/user-images/' . eps_user_profile_img($id));
}


I want to change new url  'NEW URL/uploads/user-images/'

*

MB Themes

Re: how override theme function
« Reply #1 on: December 31, 2023, 12:16:43 PM »
Create mew function that will modify data via filter user_profile_img_url
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: how override theme function
« Reply #2 on: January 01, 2024, 09:55:15 AM »
Create mew function that will modify data via filter user_profile_img_url

Which filter use ?

Share example

*

MB Themes

Re: how override theme function
« Reply #3 on: January 01, 2024, 05:27:35 PM »
You have it in your message which one
Examples: https://docs.osclasspoint.com/filters
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

umimo

  • ***
  • 88 posts
Re: how override theme function
« Reply #4 on: January 02, 2024, 02:58:43 AM »
You have it in your message which one
Examples: https://docs.osclasspoint.com/filters


I’m trying to change theme function for child theme

function eps_user_profile_img_url($id = null) {
  return (string) osc_apply_filter('user_profile_img_url', osc_base_url(). 'oc-content/uploads/user-images/' . eps_user_profile_img($id));
}