Actions and scripts for WordPress

Joke code for your website. Will work not only on WordPress. Flipping the site with css3 styles.

Replacing individual words when adding comments

Using the code, you can define a list of stop words (for example, so word swear wp-***in) or make it so that when you add a single word in the comments, it is replaced with a special link. Attention: Data changes directly in the database, not in output.

Adding Buttons to the WordPress Visual Editor

Add code to file functions.php your theme and you will have subscript and superscript buttons. Useful if you need to write formulas in blog posts WordPress. Parameter mce_buttons_3 can be replaced by mce_buttons_2 He shows, in which row will the new buttons be.

Disable admin panels (There is an admin) fully

To completely disable the admin panel on the user side for everyone, including the administrator can use the code:

Page thumbnail in the list of all WordPress admin pages in a separate column seemed very convenient to me and I wrote a lesson about one of the codes that I found. Now I will offer you another option for solving this problem.. More simple, but a little worse previous.

Displaying content in a separate column in the list of articles.

One of the visitors of my site asked for help in solving the problem. The problem was that there were a lot of jokes on the site, some of them needed to be removed, and leave others. Since there was a lot of content on the site, and the jokes are short, then it was inconvenient to go to the page to view it. Scratching his turnip and, as always, realizing, that there is not enough time to solve all the problems, I decided to postpone the problem until better and freer times. The task was solved by me when writing the next lesson and here is the code for solving this, as it turned out not a difficult task.

Adding code to your theme's functions.php file.


Купить хостинг WordPress
/* WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

6 Responses

  1. Vadim Bachynskyi says:

    This is the last thing I asked, with jokes.

    Everything works great, what you need. Didn't even expect. I don't know how to thank.

  2. admin says:

    Glad the code was helpful. Stay tuned for more great things to come, it works with the WordPress API.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal