WordPress custom block: Link saved in database not retrieved when editing post

Your selectors are wrong. { attributes: { link1: { type: ‘string’, source: ‘attribute’, attribute: ‘href’, selector: ‘.btn-afil-text-card a:first-child’ }, link2: { type: ‘string’, source: ‘attribute’, attribute: ‘href’, selector: ‘.btn-afil-text-card a:last-child’ } }, } Both of your a elements are the first (and last) children of their parents, which means that your attributes are each getting … Read more

My WordPress password for admin account is changing automatically

Do you use elementor? It could be this: “The critical-severity flaw is tracked as CVE-2023-32243 and impacts Essential Addons for Elementor versions 5.4.0 to 5.7.1, allowing unauthenticated attackers to arbitrarily reset the passwords of administrator accounts and assume control of the websites.” https://www.bleepingcomputer.com/news/security/hackers-target-vulnerable-wordpress-elementor-plugin-after-poc-released/amp

How do I edit the action URL on a widget form from a plugin?

I suggest that you reach out to the form plugin author and ask if the plugin provides a filter for modifying the form action, and you could use that. You would add a function to your theme’s functions.php file. Without knowing the specific plugin, I can’t provide a detailed guide for this. If the widget … Read more

Is there a hook that I can use when a fatal error occurs?

Look into the WP_Fatal_Error_Handler class. I see a couple of filters in its display_default_error_template() method that might be helpful for you: wp_php_error_args wp_php_error_message The entire class is a drop-in, so if you need to you can replace it entirely with your own version, but I think one of those filters—probably wp_php_error_args—might be what you’re looking … Read more

Cannot Access wp-admin

Seems like you tried a lot of things, sorry you’re stuck like this. You didn’t mention anything about the database, though – have you also tried importing a whole new DB? An usermeta issue might explain this. I’d try deleting the database (while backing it up first) and renaming the plugin folder to something like … Read more