Supported file types for upload

This code will add a new tab, which will display all supported file types. The list of supported types can be easily modified by adding a special filter.

Sample code for forming a tab:

 

Snapshot of the resulting tab

Типы данных в WordPress

 

Another Useful WordPress Code Snippet

Among other things, I found another useful code, which can in the settings of the plugin you create, withdraw which types are supported by WordPress at the moment to download files.

Code Example:

I checked everything and everything works. Good luck with development!

Buy WordPress hosting
/* 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...

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