23 lines
548 B
PHP
23 lines
548 B
PHP
<?php
|
|
/*
|
|
Plugin Name: Auto Upload Images
|
|
Plugin URI: https://irani.im/wp-auto-upload-images.html
|
|
Description: Automatically upload and import external images of a post to Wordpress upload directory and media management
|
|
Version: 3.3.2
|
|
Author: Ali Irani
|
|
Author URI: https://irani.im
|
|
Text Domain: auto-upload-images
|
|
Domain Path: /src/lang
|
|
License: GPLv2 or later
|
|
*/
|
|
|
|
if (!defined('ABSPATH')) exit();
|
|
|
|
define('WPAUI_DIR', dirname(__FILE__));
|
|
|
|
require 'src/functions.php';
|
|
require 'src/WpAutoUpload.php';
|
|
|
|
$wp_aui = new WPAutoUpload();
|
|
|
|
$wp_aui->run();
|