This plugin makes the html–and visual-editor quick to add Quicktags. Quicktags can easily be exported in a JSON format that can be imported to other plugin installations.
Initial Roel Meurders WP AddQuicktag now for WordPress. The versions in AddQuicktag’s Repo are older versions, with more features, this is a complete rewrite of version 2.0.0.
The plugin can attach custom quicktags (such as post types from another source) to any post editor. A simple tag can be added to the editor for each type of post.
The hooks within the plugin are also available if you find this not working for your needs. In the tab “ Othernotes” see the examples and hint.
Contribute, bugs and technical hints
Thank you for your input, contributions and technical bug reports. GitHub Repo.
Crafted By Inpsyde · Engineering the web since 2006.
Hook to create custom types of posts
The plugin will add the quicktag automatically to posts types/ID Previous post
, Seite
And Comment
. A filter can be used to make the plugin work for different post types. Gist 1595155.
// add custom function to filter hook 'addquicktag_post_types'
add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
/**
* Return array $post_types with custom post types
*
* @param $post_type Array
* @return $post_type Array
*/
function my_addquicktag_post_types( $post_types ) {
$post_types[] = 'edit-comments';
Retour $post_types
}
Hook for creating custom pages
Filtering pages within the backend is also possible. The scripts automatically include all pages. post.php
, comment.php
. This example is for a different page.
add_filter( 'addquicktag_pages', 'my_addquicktag_pages' );
/**
* Return array $page with custom page strings
*
* @param $page Array
* @return $page Array
*/
function my_addquicktag_pages( $page ) {
$page[] = 'edit-comments.php';
Retour $page
}
For an example of how to add Quicktags in the editor for comments, see this Gist: Gist: 3076698.
You can remove this setting to make the Quicktags work with the Quickedit comments. .example
-Part of addquicktag_quickedit_comment.php.example
filename. Filename is an Add Quicktag helper plugin. You’ll need to activate this file (plugin) separately in ‘Manage Plugins’.
For custom buttons, hook
You can create custom buttons for the editor if you have the plugin active.
In the following example, buttons are added. These array params are identical to those in the plugin settings.
If class_exists ( 'Add_Quicktag’ ) then?
add_filter( 'addquicktag_buttons', 'my_addquicktag_buttons' );
function my_addquicktag_buttons( $buttons ) {
$buttons[] = array(
'text' => 'Permalink',
'title' => '',
'start' => 'https://gpldownloadsite.com/addquicktag-wordpress-plugin-free-download/',
'access' => '',
'order' => 1,
'visual' => 1,
'post' => 0,
'page' => 1,
'comment' => 0,
'edit-comments' => 0
);
$buttons[] = array(
'text' => 'Button',
'title' => '',
'start' => '<span class="border blue">',
'end' => '</span>',
'access' => '',
'order' => 2,
'visual' => 1,
'post' => 0,
'page' => 1,
'comment' => 0,
'edit-comments' => 0
);
Retour $buttons
}
endif;
Licence
This plugin is now secure for all! It is free to use on any personal or business blog, as it is under the GPL. You may also like the plugin and would appreciate my leaving feedback. positive review for the time I’ve spent writing this plugin and promoting it. And I don’t really want to know how many hours this plugin has consumed in my life. 😉