Skip to content
تمی
تمی

اخبار روز وردپرس

  • اخبار و مقالات قالب سایت
تمی

اخبار روز وردپرس

4 مرداد 140124 اردیبهشت 1402

Introducing WPCode – Easy WordPress Code Manager to Future-Proof Your Customizations

On average, I believe you can easily replace 6 – 8 existing plugins on your website because a typical website often installs these one-off feature plugins.

It comes with a built-in code snippets library where you can find some of my most popular WordPress code snippets that will help you eliminate the need of separate plugins.

WPCode WordPress Code Snippets Library

Now you can remove those plugins, clean up your admin area, and simplify your website management.

What’s Coming Next in WPCode?

And there are currently over two dozen other code snippets that you can use to add custom functionality while reducing the number of plugins on your site.

Now with WPCode free generators, you can cut out those plugins while still adding the custom functionality that you want with an admin UI.

We also added both automatic code insertion and manual output using shortcodes. This way you can add features using a custom shortcode, or simply automatically add certain features on area that you want.

WPCode Auto Insert PHP Code

Yours Truly,

We have an exciting roadmap ahead of us to make this plugin even more powerful. Some of the things that we’re working on:

  • A larger list of Code Snippet library that is vetted by our WordPress experts
  • Save custom snippets to cloud – this will be great for those creating & managing multiple websites as you can build your personalized snippet library inside the plugin
  • and much more…

In the same time period, WordPress grew a lot too with tons of new features and plugins.

If you ever update your theme or switch to another theme, then you will lose all custom code functions that you added in your functions.php file.

If you’re a marketer, think of WPCode like a Google Tag Manager but inside WordPress.

Every month, I would get requests from our users to add more functionality such as the ability to conditionally load scripts on certain pages, ability to add code snippets in other areas of the website, and so on.

Examples use-cases of WPCode conditional logic:

  • Load code snippets for logged in users only
  • Load PHP code snippets for specific user roles
  • Load PHP code snippets only on specific page URLs
  • Insert header and footer pixel scripts on specific pages
  • Show code snippets based on type of page
  • Run code snippet only on certain post types
  • Load header and footer code snippet based on referrer source
  • and more…

Our Auto Insert feature allows you to run the code snippet everywhere or choose from custom options like:

  • Run code snippet only on frontend
  • Run code snippet only in WordPress admin area
  • Add header and footer scripts sitewide
  • Insert PHP code snippet before or after post content
  • Insert code snippet before or after specific paragraph
  • Insert code snippet on specific archive pages

Instead of learning WordPress conditional logic queries, you can use visual conditional logic to decide when a certain snippet would load.

WPCode Smart Conditional Logic

In the past, beginners and intermediate users would use WordPress plugins to create custom post types, taxonomies, etc with an admin UI. The problem is that those are one-time use plugins that in the background are just generating custom code snippets.

We built this tool to help you save time and hassle when managing your website customizations. This is like the ultimate Swiss-Army knife tool that will help you replace dozens of existing WordPress plugins while making your website faster.

Introducing WPCode - WordPress Code Snippets Plugin

Background Story

As always, I want to thank you for your continued support of WPBeginner, and we look forward to continue serving you for years to come.

We’re truly building something special here. If you have ideas on how we can make the plugin more helpful to you, please send us your suggestions.

WPCode is by far the MOST POWERFUL plugin you’ll install on your WordPress site, and I’m not exaggerating.

This will be a huge time-saver for new WordPress developers and web professionals who’re building websites for clients.

Conditional Logic for Code Snippets + Auto Insertion Priority

For example, there are ready-made snippets that will help you:

  • Disable XML-RPC – this is good for WordPress security
  • Allow SVG File Upload – eliminates the need for separate plugin
  • Disable Gutenberg – eliminates the need for separate plugin
  • Disable Comments – eliminates the need for separate plugin
  • Add Tracking Scripts for Google Analytics, Facebook, AdSense, and other platforms

My plan is to continue to add more custom code snippets there to cover popular use-cases. If you have suggestions, please let us know by filling out the form here.

You can safely update themes or switch to another theme without ever losing your important website customizations.

Most WordPress customization tutorials will ask you to add code snippets to your theme’s functions.php file. This old way simply makes managing code snippets messy, and it also prevents you from updating your theme.

WPCode solves this by providing you an easy way to insert header and footer scripts along with other code snippets directly from your WordPress dashboard. These code snippets actually run as if they were in your theme’s functions.php file, but we make your customizations future-proof.

Create New Custom Snippet in WordPress

If you’re a WordPress developer / freelancer that wants to contribute code snippets, please send us your snippet using the form above.

Future-Proof Site Customization & Code Management

Aside from that, we also added a visual code snippet priority system, so you can choose the order for your custom functions to avoid code conflict.

Add code description, tags, and priority in WPCode

What are Some Example Use Cases + Plugins You Can Replace?

Here are some of the top use-cases :

  • Insert Headers and Footers scripts
  • Insert Google Analytics Tracking Code in Header and Footer
  • Insert PHP Code Snippets or JavaScript code snippet without modifying theme’s functions.php file
  • Insert Facebook Pixels code, Google Conversion Pixels code, and other Advertising Conversion Pixel Scripts in WordPress header and footer with conditional logic
  • Insert Google AdSense Ads code, Amazon Native Contextual Ads code, and other Media Ads code
  • Insert Custom JavaScript, CSS, and HTML code
  • Insert Site Verification Meta tags for Social Media, Google Search Console, and other Domain verification in the header and footer of your site
  • Insert re-usable custom content blocks
  • Insert Ads code in content after specific paragraphs
  • Show or hide custom code snippets based on conditional logic
  • Disable XML-RPC, Disable Rest API, disable comments, allow SVG file uploads, disable Gutenberg and enable Classic Editor without adding extra plugins

Using the new plugin you can:

  • Add tracking scripts / various webmaster tool verification meta details in your site with just a few clicks.
  • Add banner ads or other dynamic content elements after first paragraph of every blog post, at the end of each blog post, etc.
  • Remove WordPress features that you don’t want such as REST API, XML-RPC, Comments, etc.
  • Easily copy & paste code snippets from tutorials in your WordPress site without errors.
  • And really this is just scratching the surface.

Just give me 5 minutes of your attention, and I’ll show you — keep on reading.

What is WPCode?

If you’re like me and most other smart website owners, then you have at least wished for this solution a couple times in your WordPress journey.

WPCode is the one plugin that helps you get rid of dozens of other plugins without losing functionality.

WPCode comes with a ready-made code snippets library that allows you to replace several popular plugins including:

  • Disable Comment plugins
  • Disable XML-RPC plugins
  • Disable Rest API plugins
  • Disable Gutenberg plugins
  • Classic Editor plugin
  • Allow SVG File Upload plugins
  • Disable RSS feed plugins
  • Disable Search plugins
  • Disable Automatic Updates plugins
  • Disable Admin Bar plugins
  • Disable Widget Blocks plugin
  • Classic Widgets plugin
  • Remove WordPress Version Number plugins
  • Facebook Pixel plugins
  • Google AdSense plugins
  • Custom Post Types UI plugins
  • Other WordPress Generator plugins

If you’re a regular business owner, think of this as a swiss-army knife for your website. It will help you do what you want to do – nothing more, nothing less.

In 2012, I created a free plugin called Insert Headers and Footers.

The goal of this plugin was to make it easy for me and other WPBeginner readers to add code to our WordPress site’s header and footer area without editing theme files!

Just with our current features and ready-made code snippets library, you can replace several popular plugins including:

All of these features are available to you for free!

Syed Balkhi
Founder of WPBeginner

For an average website owner, this plugin will help you reduce at least 6 – 8 other plugins that you might be using right now with just the ready-made snippets that are there.

This would include things like Google Analytics script, custom CSS code, Facebook Pixel, AdSense code, and more.

Aside from the above, we also have code snippet generator for scheduling a cron job, registering scripts & stylesheets, adding custom post status, and more.

My goal with WPCode was to create a WordPress code snippets plugin that’s both EASY and POWERFUL.

Examples of Custom Code Generators with Admin UI include:

  • Custom Post Type Generator – Create custom code snippet for Post Types.
  • Custom Taxonomy Generator – Get custom code snippet for Taxonomies.
  • WP Query Generator – Get custom code snippet for WP_Query to load posts.
  • Custom Sidebar Generator – Create custom code snippet to register custom sidebars or widget-ready areas.
  • Custom Widget Generator – Custom code snippet to register custom widgets.
  • Navigation Menu Generator – Custom code snippet for registering new navigation menu locations in your theme.

Aside from our growing code snippets library, we also have WordPress code generators to help you quickly get ready-to-use custom code using the latest WordPress coding standards and API’s.

WPCode Generators for WordPress

WPCode is a powerful WordPress code snippet plugin that makes it easy for you to add custom WordPress features using code snippets without editing your theme’s functions.php file.

Another problem with adding custom code snippets on your theme’s functions.php file was that even the smallest mistake can break your website and make it inaccessible.

That’s why aside from our global header and footer scripts, we added advanced features like conditional logic for code snippets and made it easy.

So we created our smart code snippet validation. This helps you prevent common code errors to ensures you never break your website when adding code snippets or header and footer scripts.

P.S. Want us to acquire or invest in your WordPress business? Learn more about the WPBeginner Growth Fund.



منبع

Have you ever wanted to reduce the number of WordPress plugins you’re using on your website?

After a lot of thought and consideration, we have decided to expand this free plugin and make it a full-featured code snippet management solution for WordPress with conditional logic, auto-insertion, and much more.

Wouldn’t it be nice if there was an easy way that allowed you to add future-proof WordPress customizations through code snippets WITHOUT breaking your website?

Since the Insert Headers and Footers plugin had over 1 million users, getting all these new features for free was a surprise for everyone.

I’m extremely pleased with the community response so far, as everyone is loving the new features.

You can manage all your header and footer scripts as well as other custom code snippets from a single screen. We even make it easy for you to organize code snippets using Tags and add reminder notes with each code snippet.

WPCode - WordPress Snippets Organized by Tags

Built-in WordPress Code Generators

Today, I’m excited to share the launch of my free WPCode plugin which will transform the way you think about WordPress customization.

Over the last decade, this simple plugin grew to over 1 million active installs.

Enter tracking code in header
اخبار و مقالات قالب سایت تم سایتقالب سایت

راهبری نوشته

Previous post
Next post

نوشته‌های تازه

  • ابزار ممیزی رایگان سئو برای افزایش رتبه
  • نحوه ویرایش انبوه تصاویر ویژه در وردپرس
  • نحوه ایجاد فید RSS مجزا برای هر دسته در وردپرس
  • نحوه اضافه کردن خودکار سلب مسئولیت در وردپرس (راه آسان)
  • نحوه تغییر اندازه تصویر Gravatar در وردپرس
  • 10 بهترین مولد کلمات کلیدی دم بلند (مقایسه شده)
  • نحوه استفاده از کدهای کوتاه در ابزارک های نوار کناری وردپرس
  • اعلام ایده مولد پست وبلاگ WPBeginner
  • چرا باید به سراغ بهترین لپ تاپ های لنوو Core i5 رفت؟ + معرفی 4 مدل محبوب | behtarin-laptop
  • نحوه فروش وب سایت یا کسب و کار آنلاین (راهنمای کامل)
  • نمایندگی سیم کشی و برق کشی ساختمان اعزام سریع برقکار ساختمان امدادکاران | fanbaz
  • نحوه ایجاد نمودار سازمانی شرکت خود در وردپرس (راه آسان)
  • نحوه ایجاد یک پست خلاصه در وردپرس (راه آسان)
  • قیمت دستگاه تولید لیوان کاغذی دست دوم + راهنمای جامع خرید | ایران کاپ
  • نحوه مشاهده نسخه موبایل سایت های وردپرس از دسکتاپ
  • نحوه افزودن متن به گفتار در وردپرس (گام به گام)
  • نحوه ایجاد فرم آپلود فایل در وردپرس (راه حل آسان)
  • کتاب کمک درسی دوم دبستان پایتخت کتاب | ketabko
  • طراحی سایت و فروشگاه اینترنتی شروع یک موفقیت آنلاین پرتال | allescape
  • حمل و نقل چیست ؟ انواع و تاریخچه حمل و نقل در ایران | transemartlogistics
  • نحوه اضافه کردن یک سازنده محصول سفارشی در ووکامرس (آسان)
  • چگونه انواع پست سفارشی را به فید اصلی وردپرس خود اضافه کنید
  • معرفی تحلیلگر سرفصل – نوشتن سرفصل های جذاب آسان شده است
  • نحوه اضافه کردن مبدل ارز در وردپرس (2 راه آسان)
  • نحوه تعمیر تغییر مسیر وردپرس به دامنه قدیمی پس از مهاجرت
  • چگونه در پست های وردپرس خود کلیک به جعبه های توییت اضافه کنید
  • نحوه ایجاد اسلایدر محصول در Shopify در سال 2023
  • نحوه نمایش یا پنهان کردن ابزارک ها در صفحات خاص وردپرس
  • به HeroThemes به صندوق رشد WPBeginner خوش آمدید
  • بهترین کاندوم بازار در سال 2023 + معرفی 20 مدل پرفروش | asilbekharid
  • نحوه ایجاد و مدیریت فایل های Ads.txt در وردپرس (آسان)
  • آیا باید به افزونه های وردپرس اجازه جمع آوری داده ها را بدهم؟
  • قیمت و رزرو اتاق فرار اختلال disorder ایران اسکیپ | allescape
  • نحوه ارسال ایمیل به همه کاربران ثبت نام شده در وردپرس
  • 16 بهترین افزونه تایپوگرافی وردپرس برای بهبود طراحی شما
  • چگونه به راحتی تصاویر تعاملی 360 درجه را در وردپرس اضافه کنیم
  • شرایط شرکت در بازی اتاق فرار در مجموعه اسکیپ رومیست | allescape
  • نحوه نمایش یا دفن نظرات در وردپرس (2 راه آسان)
  • 8 بهترین افزونه گرید محصول برای ووکامرس (رایگان + پولی)
  • معماری اسلامی و 8 نمونه برجسته | معماری نواز
  • معرفی Broken Link Checker – Easy Dead Link Checker برای تعمیر لینک های شکسته در وردپرس
  • نحوه اضافه کردن کلاهک در پست های وردپرس (3 روش ساده)
  • نحوه باز کردن پیوندهای خارجی در یک پنجره یا برگه جدید با وردپرس
  • طراحی ایوان، بالکن، تراس، پاسیو و بام سبز آرل | elitarchgroup
  • طراحی سایت خدماتی یاس وب مبتکر اینده های نو و جذاب در طراحی وب | totoweb
  • نحوه تبدیل انبوه بلوک های کلاسیک به گوتنبرگ در وردپرس
  • برترین برنامه های Shopify چرخ فلک و اسلایدر ویدیو در سال 2023 – Shopidevs
  • نحوه سفارشی کردن رنگ پس زمینه ویرایشگر بلاک وردپرس
  • نحوه استفاده از فونت های آیکون در ویرایشگر پست وردپرس (بدون کد)
  • چگونه فروشگاه Shopify را در سال 2023 زنده کنیم – Shopidevs

دسته‌ها

  • اخبار و مقالات قالب سایت
  • دسته‌بندی نشده
  • ابزار ممیزی رایگان سئو برای افزایش رتبه
  • نحوه ویرایش انبوه تصاویر ویژه در وردپرس
  • نحوه ایجاد فید RSS مجزا برای هر دسته در وردپرس
  • نحوه اضافه کردن خودکار سلب مسئولیت در وردپرس (راه آسان)
  • نحوه تغییر اندازه تصویر Gravatar در وردپرس
  • 10 بهترین مولد کلمات کلیدی دم بلند (مقایسه شده)
  • نحوه استفاده از کدهای کوتاه در ابزارک های نوار کناری وردپرس
  • اعلام ایده مولد پست وبلاگ WPBeginner
  • چرا باید به سراغ بهترین لپ تاپ های لنوو Core i5 رفت؟ + معرفی 4 مدل محبوب | behtarin-laptop
  • نحوه فروش وب سایت یا کسب و کار آنلاین (راهنمای کامل)
  • نمایندگی سیم کشی و برق کشی ساختمان اعزام سریع برقکار ساختمان امدادکاران | fanbaz
  • نحوه ایجاد نمودار سازمانی شرکت خود در وردپرس (راه آسان)
  • نحوه ایجاد یک پست خلاصه در وردپرس (راه آسان)
  • قیمت دستگاه تولید لیوان کاغذی دست دوم + راهنمای جامع خرید | ایران کاپ
  • نحوه مشاهده نسخه موبایل سایت های وردپرس از دسکتاپ
  • نحوه افزودن متن به گفتار در وردپرس (گام به گام)
  • نحوه ایجاد فرم آپلود فایل در وردپرس (راه حل آسان)
  • کتاب کمک درسی دوم دبستان پایتخت کتاب | ketabko
  • طراحی سایت و فروشگاه اینترنتی شروع یک موفقیت آنلاین پرتال | allescape
  • حمل و نقل چیست ؟ انواع و تاریخچه حمل و نقل در ایران | transemartlogistics
  • نحوه اضافه کردن یک سازنده محصول سفارشی در ووکامرس (آسان)
  • چگونه انواع پست سفارشی را به فید اصلی وردپرس خود اضافه کنید
  • معرفی تحلیلگر سرفصل – نوشتن سرفصل های جذاب آسان شده است
  • نحوه اضافه کردن مبدل ارز در وردپرس (2 راه آسان)
  • نحوه تعمیر تغییر مسیر وردپرس به دامنه قدیمی پس از مهاجرت
  • چگونه در پست های وردپرس خود کلیک به جعبه های توییت اضافه کنید
  • نحوه ایجاد اسلایدر محصول در Shopify در سال 2023
  • نحوه نمایش یا پنهان کردن ابزارک ها در صفحات خاص وردپرس
  • به HeroThemes به صندوق رشد WPBeginner خوش آمدید
  • بهترین کاندوم بازار در سال 2023 + معرفی 20 مدل پرفروش | asilbekharid
  • نحوه ایجاد و مدیریت فایل های Ads.txt در وردپرس (آسان)
  • آیا باید به افزونه های وردپرس اجازه جمع آوری داده ها را بدهم؟
  • قیمت و رزرو اتاق فرار اختلال disorder ایران اسکیپ | allescape
  • نحوه ارسال ایمیل به همه کاربران ثبت نام شده در وردپرس
  • 16 بهترین افزونه تایپوگرافی وردپرس برای بهبود طراحی شما
  • چگونه به راحتی تصاویر تعاملی 360 درجه را در وردپرس اضافه کنیم
  • شرایط شرکت در بازی اتاق فرار در مجموعه اسکیپ رومیست | allescape
  • نحوه نمایش یا دفن نظرات در وردپرس (2 راه آسان)
  • 8 بهترین افزونه گرید محصول برای ووکامرس (رایگان + پولی)
  • معماری اسلامی و 8 نمونه برجسته | معماری نواز
  • معرفی Broken Link Checker – Easy Dead Link Checker برای تعمیر لینک های شکسته در وردپرس
  • نحوه اضافه کردن کلاهک در پست های وردپرس (3 روش ساده)
  • نحوه باز کردن پیوندهای خارجی در یک پنجره یا برگه جدید با وردپرس
  • طراحی ایوان، بالکن، تراس، پاسیو و بام سبز آرل | elitarchgroup
  • طراحی سایت خدماتی یاس وب مبتکر اینده های نو و جذاب در طراحی وب | totoweb
  • نحوه تبدیل انبوه بلوک های کلاسیک به گوتنبرگ در وردپرس
  • برترین برنامه های Shopify چرخ فلک و اسلایدر ویدیو در سال 2023 – Shopidevs
  • نحوه سفارشی کردن رنگ پس زمینه ویرایشگر بلاک وردپرس
  • نحوه استفاده از فونت های آیکون در ویرایشگر پست وردپرس (بدون کد)
  • چگونه فروشگاه Shopify را در سال 2023 زنده کنیم – Shopidevs
©2023 تمی | WordPress Theme by SuperbThemes