Socket
Book a DemoInstallSign in
Socket

@wordpress/deprecated

Package Overview
Dependencies
Maintainers
23
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/deprecated

Deprecation utility for WordPress.

4.30.0
latest
Source
npmnpm
Version published
Maintainers
23
Created

What is @wordpress/deprecated?

@wordpress/deprecated is a utility package used in WordPress development to handle deprecated features. It provides a way to mark functions, methods, or other features as deprecated, allowing developers to notify users of the deprecation and suggest alternatives.

What are @wordpress/deprecated's main functionalities?

Marking a function as deprecated

This feature allows developers to mark a function as deprecated. The `deprecated` function is called with the name of the deprecated function, the version since it is deprecated, an alternative function, and the plugin name. This helps in notifying users about the deprecation and suggesting an alternative.

const deprecated = require('@wordpress/deprecated');

function oldFunction() {
  deprecated('oldFunction', {
    version: '1.0.0',
    alternative: 'newFunction',
    plugin: 'my-plugin'
  });
  // Function logic
}

Other packages similar to @wordpress/deprecated

Keywords

wordpress

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.