ZeroGravity
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Filter the_content_feed only for specified custom feed.Thanks @bcworkz but I’m not actually looking for the Feed Type, but the Feed Name. This is my code to create the custom feed. The MC_newsletterRSS function sets the query conditions and has the template for the RSS output.
add_action('init', 'zgwd1010_customRSS'); function zgwd1010_customRSS(){ add_feed('mc-newsletter', 'MC_newsletterRSS'); }
I’m looking for something like:
add_filter('the_content_feed', 'zgwd1010_rss_inline_css'); function zgwd1010_rss_inline_css($content) { if ( 'mc-newsletter' == <<feedname>> ) { // Do the magic } return $content; }
If I use feed type then all feeds of that type will be processed by the filter. I only want this custom feed, “mc-newsletter,” to be processed. All other feeds, regardless of type, should be handled by WordPress default.
- This reply was modified 2 years, 9 months ago by ZeroGravity. Reason: More information
- This reply was modified 2 years, 9 months ago by ZeroGravity.
Forum: Plugins
In reply to: [Five Star Business Profile and Schema] Change Map ZoomThanks for your reply @jaysupport. It would be nice if this could be added as a feature in the settings or having a filter that would enable updating the iFrame source.
I have made updates to plugin cores before and there is always that once where you forgot to reapply it. ??
Forum: Plugins
In reply to: [Download Monitor] Editor Option to Insert Link Instead of ShortcodeThanks!
Forum: Plugins
In reply to: [Genesis Blocks] Post Page Grid – Columns for PagesThanks!
I should have kept reading. The plugin provides a filter so you can change the action hook that is used to display the icons. I added this to my core functionality plugin.
/** * Move Shared Counts * @see https://sharedcountsplugin.com/2019/03/27/change-the-theme-location-for-share-buttons/ * * @param array $locations * @return array */ function be_shared_counts_location( $locations ) { if ( is_woocommerce() ) { // Before WC Product $locations['before']['hook'] = 'woocommerce_before_single_product'; $locations['before']['filter'] = false; // After WC Product $locations['after']['hook'] = 'woocommerce_after_single_product'; $locations['after']['filter'] = false; } return $locations; } add_filter( 'shared_counts_theme_locations', 'be_shared_counts_location' );
Forum: Plugins
In reply to: [WP Original Media Path] Permissions Reseting every January (750 & 640)Thanks @rvola. My host has confirmed there is no way to change the date/time on the server for testing. ?? I am at a loss. I don’t want to have to reset all those websites again next year.
Forum: Fixing WordPress
In reply to: WP-Content permissions changing from 755 to 750Can you tell me where in the code the folder for the new year is created? Would like to add some logging code there for testing.
Thanks!Forum: Fixing WordPress
In reply to: WP-Content permissions changing from 755 to 750Thanks @t-p, have done so. Their response was:
“You should know that this problem is not caused by my extension, because it only puts an interface to program fields hidden by Automattic since version 3.5.”
I think I’m going to have to see if there is a way to force the date back to 12/31/20 on a test cPanel account and recreate the issue. Sigh….
Forum: Plugins
In reply to: [WP Original Media Path] Permissions Reseting every January (750 & 640)Thanks for your quick reply @rvola! I do love your plugin. ??
The testing scenario you mentioned won’t reproduce the issue. It only happens when the new year clicks over, i.e. the creating of the year folder – 2021 for example. Once I login to each cPanel account in January and reset the permissions all the subsequent folders (02, 03, 04 etc.) are created with the correct 755 permissions. Come the new year the wp-content and uploads folders return to 750 resulting in the year folder being created with 750. ?? I logged into one of the accounts exhibiting the behavior and deleted the 2021 folder. When I accessed the website the 2021 folder was recreated with the correct 755 permissions. Getting more and more baffled!
Are you using subdomains in the Full URL path to files setting?
I know what the permissions should be and how to reset them so the links you provided don’t really help.
The curious thing is, this only happens on the websites where I have your plugin installed. I did have a quick look through the plugin code but not being a complete expert in PHP didn’t know if I was missing something.
I usually install WP on cPanel using the Softaculous app installer but turn off all the update and backup settings. My thought is if this is the issue it would happen with every site on my server.
All the sites are running PHP 7.3+ and the latest versions of WP and plugins. Keeping these up to date I’m guessing any corrupted files would be replaced.
I am going to asking my hosting provider if there is a way I can force the date/time back to 12/31/20 and see what happens.
Forum: Fixing WordPress
In reply to: WP-Content permissions changing from 755 to 750I believe it maybe something to do with the WP Original Media Path plugin. It happens to all the sites where I have used this plugin. It the site doesn’t have the plugin installed it isn’t happening. Hmmmm. Not sure how to set the date/time on a shared hosting account to trip the new year for testing.
I have posted a support request on the plugin page.
@lsingh did you ever find a solution for this? Like you I am trying to set a default download limit so it isn’t forgotten when adding new products. I’m astounded there isn’t an option for this under WooCommerce -> Settings -> Products -> Downloadable Products.
Forum: Fixing WordPress
In reply to: WP-Content permissions changing from 755 to 750Thanks guys. I will ask the Host again. The difficulty with testing is that my account is a reseller account so it may be difficult (or impossible) to change the time on a cPanel account to trigger any script when the year changes.
How does WP create the folder for a new month. Is it via a cron job that runs the first time the site is hit after the start of the month? This issue is happening only for January. It doesn’t happen for any other month.
Forum: Plugins
In reply to: [AccessPress Social Icons] No icons in editorI am having the same issue. I have “choose icon’s individually” selected.
This is the result when clicking on the “Pre available icons” button to select an icon image.
Pre available icons popupThe result after adding the icon.
Icon PreviewThis is what it looks like on the website
Website exampleIn the same was as @3dwebvision needed to do I had to edit the record in the database to add the missing image URL.
s:7:"Twitter";a:16:{s:5:"title";s:7:"Twitter";s:5:"image";s:0:"";s:10:"icon_width";s:4:"48px";s:11:"icon_height";s:4:"48px";
I read through all the documentation again and zipped the MP3s. All good now.
Ok, I’m blind. I looked everywhere through the settings and missed the “Clear Update Message” button on the Downloads -> Tools -> General page. ??