plugin-icon

Plain Text Custom Post Type

لصاحبه Ryan·
Adds a custom post type for plain text files that can be used for JavaScript or CSS.
النسخة
0.2
التنصيبات النشطة
10
آخر تحديث
Oct 12, 2012

Create plain text files through WordPress using a custom post type.

This came about because I needed a way to edit a JavaScript file on a blog that’s part of a multi site network setup, and I didn’t want to do a child theme for just that one blog and keep up with updating the JS through FTP. This way I can edit it directly inside of WordPress as I need to without firing up Notepad++ or FileZilla.

If you select either CSS or JavaScript as the file type you’ll have the option for the plugin to automatically link to the file within your page header, assuming your theme supports the wp_head callback. The links are created using either wp_register_script / wp_enqueue_script or wp_enqueue_style / wp_enqueue_style.

And a thank you goes out to Ted Devito for his Tabby jQuery plugin that allows the capture of tabs inside the edit text area.

مجانيعلى خطة Business
إذا أتممت بالتثبيت، فإنك توافق على شروط خدمة ووردبريس.كوم ووشروط إضافات الأطراف الثالثة.
تم اختباره حتى
WordPress 3.4.2
تتوفّر هذه الإضافة للتنزيل لتُستخدم في عملية التثبيت لديك.