admin管理员组文章数量:1314015
Summary: Updated the option_value for a widget_text made the widget disappear from the UI. How do I bring it back?
Issue: I wanted to fix a typo in one of my widgets. I found that the following row in the wp_options table contains the text with the typo. I updated the option_value column in the row in wp_options table that contains this text. Now, the widget has completely disappeared from the screen.
option_id, option_name, option_value, autoload
83,widget_text,"a:3:{i:2;a:3:{s:5:"title";s:16:"Location";s:4:"text";s:89:"Address";s:6:"filter";b:0;}i:3;a:3:{s:5:"title";s:0:"";s:4:"text";s:334:"<div class="attribution-text">Copyright text</div>";s:6:"filter";b:0;}s:12:"_multiwidget";i:1;}",yes
I deleted the above row and refreshed the screen (to see if the old values come back), but now it has created this new row in the table
option_id, option_name, option_value, autoload
'100000000000007', 'widget_text', 'a:1:{s:12:\"_multiwidget\";i:1;}', 'yes'
Can someone help me bring back the widget's text? I backed up the original option_value but copy-pasting it to the row doesn't bring it back in the UI.
Note: I am looking to update entries directly in the database because the Appearance--> Customize got broken after a PHP version upgrade and can't be accessed for a few days.
本文标签: pluginsHow to update widgettext in the wpoptions table
版权声明:本文标题:plugins - How to update widget_text in the wp_options table 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741934330a2405760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论