# simple-embed-code/2.1.2/simple-code-embed.php

Code Embed, version 2.1.2. 45 lines.

- Page: https://pluginprobe.com/plugins/simple-embed-code/2.1.2/code/simple-code-embed.php
- Raw: https://pluginprobe.com/plugins/simple-embed-code/2.1.2/raw/simple-code-embed.php
- Modified: 2015-10-01T13:07:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/simple-embed-code/2.1.2/code/simple-code-embed.php#L10-L20`.

```php
<?php
/*
Plugin Name: Code Embed
Plugin URI: https://wordpress.org/plugins/simple-code-embed/
Description: Allows you to embed code into your posts & pages
Version: 2.1.2
Author: David Artiss
Author URI: http://www.artiss.co.uk
Text Domain: simple-embed-code
*/

/**
* Artiss Code Embed
*
* Embed code into a post
*
* @package	Artiss-Code-Embed
* @since	1.6
*/

define( 'artiss_code_embed_version', '2.1.2' );

function ace_load_plugin_textdomain() {
    load_plugin_textdomain( 'simple-embed-code', false, 'simple-embed-code/languages' );
}
add_action( 'init', 'ace_load_plugin_textdomain' );

$functions_dir = WP_PLUGIN_DIR . '/simple-embed-code/includes/';

// Include all the various functions

include_once( $functions_dir . 'ace-get-options.php' );		    			// Get the default options

if ( is_admin() ) {

	include_once( $functions_dir . 'ace-admin-config.php' );				// Various administration config. options

} else {

	include_once( $functions_dir . 'ace-add-scripts.php' );		       		// Add scripts to the main theme

	include_once( $functions_dir . 'ace-filter.php' );		        		// Filter to apply code embeds

}
?>
```
