Hi.
I am using a child theme with X Pro and have found a plugin that I need to edit it’s php. While the plugin does not update often, when it does it will overwrite the change I made.
How do I use my Child Theme function.php to replace the edited code with my text?
The plugin is: MB ImageChimp RSS Feed Enhancer.
I am changing the default ‘thumbnail’ image size for the featured image rss feed to be ‘medium’. That’s the only change I am making and it works great.
The code within the mb-imagechimp-rss-feed-enhancer/mb-imagechimp-feed-enhancer.php is:
$img_id = get_post_thumbnail_id($post->ID);
$img_attr = wp_get_attachment_image_src( $img_id, apply_filters(‘mb_rss_extend_item_media_image_size’,‘medium’) );
$img_url = $img_attr[0];
$img_dimension = apply_filters( ‘mb_rss_extend_item_media_image_dimension’, array(‘width’ => $img_attr[1], ‘height’ => $img_attr[2]) );
I assume I need to put some IF statement code in my ‘Pro – Child Theme: Theme Functions (functions.php)’. Probably need to change only one line.
Sorry, I don’t know too much about php and try to keep well away from it.
Any come would be great.