ZeroGravity
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Google reCAPTCHA] reCaptcha isn’t displaying on any pages.I found the issue. I had some code that removes the query strings from static resources. This removed the query strings when api.js was loaded by the plugin. I added an exception to the code and it works perfectly. π
Thanks!
Forum: Plugins
In reply to: [Advanced Google reCAPTCHA] reCaptcha isn’t displaying on any pages.I apologize for the delay in getting back to you on this. Life has taken a few twists and turns.
I installed the plugin on a test site and it worked perfectly but not on the live site. I will deactivate everything and test to see where the conflict is occurring.
Forum: Plugins
In reply to: [Black Studio TinyMCE Widget] PHP 8 Compatible?Thanks!
Thanks for the information @ipstenu. I understand the difficulty but if a few change it makes life easier for the rest of us.
I live by the mantra “If you don’t ask, you don’t give people the opportunity to say yes.” π
Forum: Developing with WordPress
In reply to: Filter the_content_feed only for specified custom feed.The doc page says “Add a new feed type like /atom1/.” I probably need a little clarification on what “like” actually means. π Is atom1 the feedname?
The header in the template function is
header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true);
It gets set to “application/rss+xml”Checking the feedtype sent to βthe_feed_content,β it’s rss2.
query_var[feed] is empty in βthe_feed_contentβ –"[feed] => "I needed to save the permalinks to refresh the rewrite rules.
Thanks for you patience @bcworkz and sorry if I’m misunderstanding but I don’t feel I am any closer to identifying which feed is being processed when βthe_feed_contentβ is called. π
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 4 years, 3 months ago by ZeroGravity. Reason: More information
- This reply was modified 4 years, 3 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 http://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.