Title: Code Injection
Author: Rmanaf
Published: <strong>14. februar, 2019</strong>
Last modified: 15. november, 2026

---

Søg plugins

![](https://ps.w.org/code-injection/assets/banner-772x250.png?rev=2994464)

![](https://ps.w.org/code-injection/assets/icon.svg?rev=2994464)

# Code Injection

 Af [Rmanaf](https://profiles.wordpress.org/rmanaf/)

[Download](https://downloads.wordpress.org/plugin/code-injection.zip)

 * [Detaljer](https://da.wordpress.org/plugins/code-injection/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/code-injection/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/code-injection/#developers)

 [Support](https://wordpress.org/support/plugin/code-injection/)

## Beskrivelse

[English](https://github.com/Rmanaf/wp-code-injection/blob/master/README.md) | [فارسی](https://github.com/Rmanaf/wp-code-injection/blob/master/README.fa.md)
| [Русский](https://github.com/Rmanaf/wp-code-injection/blob/master/README.ru.md)
| [简体中文](https://github.com/Rmanaf/wp-code-injection/blob/master/README.zh-CN.md)
| [Deutsch](https://github.com/Rmanaf/wp-code-injection/blob/master/README.de.md)

This plugin allows you to effortlessly create custom ads for your website. Inject
code snippets in HTML, CSS, and JavaScript, write and run custom plugins on-the-
fly, and take your website’s capabilities to the next level.

#### Usage

To use this plugin, follow these steps:
 * Activate the plugin from the Plugins 
menu in your dashboard. * Click on the Code button in the dashboard menu to create
and manage your code snippets. * To insert a code snippet in your post or page, 
copy the CID (code identifier) from the list and use the shortcode `[inject id='#']`,
where `#` is the CID. * To insert a code snippet in your sidebar, drag and drop 
the CI widget into the desired widget area and select the code snippet from the 
dropdown menu.

#### Advanced Usage

If you want to run PHP scripts in your website, you need to do some extra steps:
*
Go to `Settings > Code Injection` and create a strong activator key. This key will
allow you to run PHP scripts safely and securely. * To insert a PHP script in your
post or page, use the shortcode `[unsafe key='#']`, where `#` is the activator key
you created before. Write your PHP script between the opening and closing tags of
the shortcode. * To run a PHP script as a plugin, check the “as plugin” checkbox
when creating or editing a code snippet. This will execute your PHP script on every
page load.

#### AI Agent Access

Code snippets can be exposed to AI coding agents so they can fetch, update, and 
re-activate your code programmatically — useful when you pair the code with instructions
and let your local agent (or tools like Claude Code, Codex CLI, etc.) work on it.

#### Warning

Be careful when running PHP scripts, as they can cause errors or conflicts with 
other plugins or themes. If you encounter any problems, you can disable the code
snippet from the database by changing its status to “draft” in the wp_posts table.

## Skærmbilleder

[⌊Code Editor⌉⌊Code Editor⌉[

Code Editor

## Blokke

Dette plugin giver 1 blok.

 *   Code Injection

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Code Injection” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

 *   [ Rmanaf ](https://profiles.wordpress.org/rmanaf/)

[Oversæt “Code Injection” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/code-injection)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/code-injection/), tjek
[SVN repository](https://plugins.svn.wordpress.org/code-injection/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/code-injection/) via 
[RSS](https://plugins.trac.wordpress.org/log/code-injection/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **2.5.2**
 *  Senest opdateret **1 uge siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 4.5.0 eller højere **
 *  Testet op til **7.1.5**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/code-injection/)
 * Tags
 * [code](https://da.wordpress.org/plugins/tags/code/)[injection](https://da.wordpress.org/plugins/tags/injection/)
   [snippets](https://da.wordpress.org/plugins/tags/snippets/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/code-injection/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/code-injection/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/code-injection/reviews/)

## Bidragsydere

 *   [ Rmanaf ](https://profiles.wordpress.org/rmanaf/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/code-injection/)