开发者 | coffee2code |
---|---|
更新时间 | 2018年6月29日 12:44 |
捐献地址: | 去捐款 |
PHP版本: | 4.6 及以上 |
WordPress版本: | 4.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
html-special-characters-helper.zip
inside the plugins directory for your site (typically wp-content/plugins/
)You can't do so directly. The plugin only inserts the HTML character encodings into the post body. However, you can use the "Clicking character copies it to the clipboard?" checkbox to copy the character you want to use into the clipboard, which can then be pasted into any other text entry field (in or outside of your browser). Note that the special character (if using the visual editor) or the HTML entity encoding for the character (if using the text editor) will be copied to the clipboard when you click the character.
You can also hover over the character you want to use to see the HTML encoding for it (it'll start with an ampersand, &
, and end with a semi-color, ;
) and type that into the field.
Refer to the screenshots to get an idea of what the helper widget looks like. You should find the widget in the right sidebar of the admin page when creating or editing a post, most likely at the bottom of the sidebar. It's possible it may have been dragged to someplace below the textarea where you provide the post's content. If you still can't find it, look to the upper-right of the page for a "Screen Options" link that reveals a panel of options. In the "Boxes" section, ensure the checkbox for "HTML Special Characters" is checked.
Yes.
get_post_types()
add_meta_box()
to more accurate meta_box_content()
.WP_TESTS_DIR
to /tmp/wordpress-tests-lib
rather than erroring out if not defined via environment variable.do_admin_init()
, bail early if an AJAX request is being processed.do_init()
and move load_plugin_textdomain()
into do_admin_init()
.dirname(__FILE__)
instead of __DIR__
since the latter is only available on PHP 5.3+.get_default_html_special_characters()
and move characters data array into it (so default data can be directly retrieved)is_admin()
check that prevented class use outside of admindirname(__FILE__)