Tag Archives: PHP

Add TinyMCE and Quicktags visual editors to WordPress comments form

TinyMCE to comments respond

At WordPress powered site backend you have these great Javascript visual text editors TinyMCE (Visual) and Quicktags (HTML/Text). Wouldn't it be great to bring those two to your WordPress blog or site frontend to be used inside our comments form? Sounds great so lets proceed. In this article I'll present two ways how to integrate TinyMCE and Quicktags visual editors into your WordPress comment system.

Continue reading

Add your custom post type count to Right Now admin dashboard widget with WordPress plugin

Wordpress Logo BlueRecently I've published my latest WordPress plugin Quick Poll where I've used custom post type feature of recent WordPress versions to implement voting poll functionality. Wouldn't it be nice to show your custom post type count on WordPress dashboard Right Now widget right bellow the number of posts, pages, comments, categories and tags? This would definitely help your custom post type to blend into default WordPress functionality. It is also handy because clicking on your custom post type count will take user right to the list of your custom post type posts. In this article I'm presenting code to do just that.

Continue reading

Securing your WordPress plugin AJAX calls using nonces

AJAX Logo In my last article on this topic I wrote about proper way of implementing AJAX with jQuery in your WordPress plugins. In this article I will show you how to implementing AJAX with jQuery in your WordPress plugins in more secure way by using WordPress nonces. Cryptographic nonce is number passed during communication whose purpose is to prevent someone sniffing authenticated communication to commit replay attack

by replaying captured communication request. Nonces protect you because every request has its own unique nonce, this way both sides can detect replay attack attempts. Now lets take a look at how WordPress implements nonce security. Continue reading

Proper way of implementing AJAX with jQuery in your WordPress plugins

AJAX LogoAJAX (Asynchronous JavaScript and XML) is web programming technique used on client side to fetch data from server side without reloading page. In this article I will write about proper way of implementing AJAX with jQuery in your WordPress plugins. Ajax has been around in WordPress code for a while now so WordPress developers have prepared a few functions and techniques to make our life a bit easier so lets get started.

Continue reading