PluginProbe
Code Embed / 1.6.1
Code Embed v1.6.1
2.6.4 2.6.3 2.6.2 2.6.1 trunk 1.0 1.1 1.2 1.3 1.4.1 1.5.1 1.6.1 2.0.2 2.1.2 2.2.2 2.3.9 2.4 2.5.1 2.5.2 2.6
simple-embed-code / simple-code-embed.php

simple-code-embed.php in Code Embed 1.6.1, at simple-code-embed.php

43 lines 989 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Artiss Code Embed
4 Plugin URI: http://www.artiss.co.uk/code-embed
5 Description: Allows you to embed code into your posts & pages
6 Version: 1.6.1
7 Author: David Artiss
8 Author URI: http://www.artiss.co.uk
9 */
10
11 /**
12 * Artiss Code Embed
13 *
14 * Embed code into a post
15 *
16 * @package Artiss-Code-Embed
17 * @since 1.6
18 */
19
20 define( 'artiss_code_embed_version', '1.6.1' );
21
22 $functions_dir = WP_PLUGIN_DIR . '/simple-embed-code/includes/';
23
24 // Include all the various functions
25
26 include_once( $functions_dir . 'get-options.php' ); // Get the default options
27
28 if ( is_admin() ) {
29
30 include_once( $functions_dir . 'admin-menu.php' ); // Administration menus
31
32 if ( !has_action( 'wp_dashboard_setup', 'artiss_dashboard_widget' ) ) {
33
34 include_once( $functions_dir . 'artiss-dashboard-widget.php' ); // Artiss dashboard widget
35
36 }
37
38 } else {
39
40 include_once( $functions_dir . 'code-embed-filter.php' ); // Filter to apply code embeds
41
42 }
43 ?>