Jairo Ochoa
Forum Replies Created
-
Forum: Plugins
In reply to: [Security Optimizer - The All-In-One Protection Plugin] Error databaseHi @delyandelov
I cannot understand why a site under Maintenance mode causes this issue.
At least Admin users are login and also can exists attempts of login by bots or hackers.
So, I think that this table should be created after plugin activation.Besides we develop applications using WP as a framework and they are closed to public, and only registered user can access.
Google sees that site is under Maintenance mode, even gets a 500, but users can work on it.An also, long term developments (months working on a site) with debug mode on generates a debug.log tooo big.
So, from my point of view, the easiest is that plugin creates the tables just after plugin activation.
Regards
Forum: Plugins
In reply to: [Security Optimizer - The All-In-One Protection Plugin] Error databaseThanks
Forum: Plugins
In reply to: [Security Optimizer - The All-In-One Protection Plugin] Error databaseHola Alberto,
I’ve seen that it only fails if using Gutenberg blocks.
I do not use Pro version. I’m coding a plugin and I’ve found this issue so I tested your plugin to check in order to know if you have solved this issue, but I’ve seen that we both are stuck in the same place.
Thanks
Forum: Plugins
In reply to: [WooCommerce Blocks] hook to remove priceHi @stuartduff
I do understand the reason why it does not work nowadays.
But I think that Gutenberg blocks should work at least as WooCommerce does.If WooCommerce has a hook to do it, Gutenberg cannot ignored it.
There are many plugins which uses this hook and now are totally useless if a designer decides to create a block in the shop.I hope that in a future Gutenberg developers and WooCommerce developers meet and work on the same way.
Meanwhile some Gutenberg blocks should be avoided.Regards
Forum: Plugins
In reply to: [WP-Sweep] Timeout when removing deleted posts (in Trash)Well, I’ve increased the time limit to the maximum available by the hosting.
Finally I will use WP CLI to do it.Forum: Plugins
In reply to: [EU tyre label shortcode] 403 – ForbiddenFixed!
The reason was an option from SG Security plugin.
Lock and Protect System FoldersRegards
Forum: Plugins
In reply to: [WP-Sweep] Timeout when removing deleted posts (in Trash)Hi @gamerz
Yes, I was also thinking of WP-CLI
The shop manager do not have SSH access so he can only use plugins and he is used to work with WP-Sweep but in this case I will have to do it for him.
Yes, if run the Delete and wait for minutes, when reloading the page we see that there are about 200 product less.
Notice that Delete must find any product which post_status is “trash” and it needs to follow up 60000 products.
Probably this is the reason of the timeoutRegards
Hi @devnihil
This is the question that started this topic:
Is there any hook which allows to remove Yoast fields programatically?
So, if there is no hook I will decide another way to do it.
Thanks
Hello again @mikes41720,
I’ve found this code:
add_action( 'template_redirect', 'remove_wpseo' ); /** * Removes output from Yoast SEO on the frontend for a specific post, page or custom post type. */ function remove_wpseo() { if ( is_single ( 1 ) ) { $front_end = YoastSEO()->classes->get( Yoast\WP\SEO\Integrations\Front_End_Integration::class ); remove_action( 'wpseo_head', [ $front_end, 'present_head' ], -9999 ); } }This prevents Yoast’s fields be shown in the front, but fields would still be stored in the database.
What I want is not to modify plugin output. What I want is that these fields do not exist in the WP-admin so they won’t exist in the frontend.I will check developer portal again.
PS: This site has about 70,000 items of the CPT and I want to avoid that unnecessary data being stored in the database. 70,000 items are too many records and if Yoast adds a bunch of custom field per post, they are toooo many unnecessary records in the database.
Regards,
JairoHi
Yes, the new CPT “business” was created programatically but this is no the question.
What I meant is: since this CPT exists, I want to remove SEO settings for this CPT in the Add/Edit page of this CPT.
I know that I can enter SEO > Search Appearance > Content Types > Business (business) and set OFF the option “Show SEO settings for Business?”
But I want do it programatically.Why I do not want to enter Yoast Settings and do it as described?
Because I want to fire this option when my plugin is activated.
The user could forget to do it and I can save him time if the plugin do this task programatically.If is there any hook to do it, I would like to know what is.
Please, let me know if now is clear what I want to do or if I have to provide you more information.
Regards,
JairoForum: Plugins
In reply to: [WooCommerce Blocks] hook to remove priceHello @thup90,
Yes, the best option is roll back and use again WooCommerce shortcodes.
It’s a pitty that Gutenberg developers do not take into account the work done by WooCommerce developers.
From my point of view, Gutenberg blocks should work at least the same as old shortocodes do.
Newer features are welcome but current features are very important to be kept if they want that user switch to new blocks.
I cannot use blocks until it were fixed.
I’m not sure if @yithemes developers have got a solution for this issued yet, at least last version couldn’t hide prices.Regards,
JairoForum: Plugins
In reply to: [WooCommerce Blocks] hook to remove priceHi @dougaitken
You can test Yith Catalogue plugin.
It has the same problem that I’ve explained. It also fails with blocks and works fine with product loop.
https://es.wordpress.org/plugins/yith-woocommerce-catalog-mode/Regards
Forum: Plugins
In reply to: [WooCommerce Blocks] Widget Product Categories: show_children_onlyHi @stuartduff
I’ve already suggested this feature in GitHub.
You can close the topic, now we can only wait that developers add this feature as classic widget does.Regards