我正在尝试向我的WordPress模板添加一个按钮。基本上,我有帖子,然后有相关的帖子缩略图窗口小部件出现。我想要的按钮之间的帖子文本和相关的帖子缩略图小工具。我的“Single Post”中包含所有这些的代码如下所示:
<div class="post-content">
<?php the_content(__('<em><strong>More:</strong> Read the rest of this entry...</em>', 'life-is-simple'))
我有一个只影响编辑器的设置块。所以不是输出。问题是,当我更改这些设置时,输出不会改变。然后Wordpress不会检测到更改,也不会触发"update“按钮。下次我打开帖子时,对块级设置的更改就消失了,因为它们没有保存。
我可以从我的块手动触发更新按钮吗?
码
import Edit from "./components/edit/edit"
import PreviewInEditor from "./components/edit/editor-preview";
import BlockSettings from "./components/
我已经创建了JDialog并将其设置为setUndecorated(true) --它没有默认的“关闭”按钮。每当按下主JDialog上的某个按钮时,都会创建这个JFrame类。此JDialog对话框包含有MouseListener的“取消”按钮。
...
public void mouseClicked(MouseEvent e) {
setVisible(false);
// How to set this JDialog class to null - release the resources?
}
...
因此,我希望将这个JDialog实例设置为null --因为每