embed Amazon products into your WordPress posts by use of [asa]ASIN[/asa] shortcode. Supports the use of custom templates. You can choose from various presentation styles and of course create your own template in a few seconds.
Requires at least: 5.1
Version: 1.10.2
Author: Timo Reith
Author URI: http://www.ifeelweb.de/
Requires PHP: 8.1
Tested up to: 6.9.4
*/
/* Copyright 2007-2026 Timo Reith (email : support@wp-amazon-plugin.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if (version_compare(phpversion(), '5.5') === -1) {
$active_plugins = get_option('active_plugins');
if (in_array('amazonsimpleadmin/amazonsimpleadmin.php', $active_plugins)) {
// foreach loop removes all entries if there are more than one for the same plugin
// like I discovered in my test database
// array_splice($active_plugins, array_search('amazonsimpleadmin/amazonsimpleadmin.php', $active_plugins), 1);
// array_splice only removes one entry which could be not enough in some cases
$new_plungins = array();
foreach($active_plugins as $plugin) {
if ($plugin != 'amazonsimpleadmin/amazonsimpleadmin.php' && !empty($plugin)) {
$new_plungins[] = $plugin;
}
}
update_option('active_plugins', $new_plungins);
}
die('Your PHP Version is not compatible with this Plugin. back');
}
define('ASA_BASE_FILE', __FILE__);
define('ASA_LIB_DIR', dirname(__FILE__) . '/lib/');
// Load Amazon Creators API SDK autoloader (PHP 8.1+ only)
if (version_compare(PHP_VERSION, '8.1.0', '>=')) {
$creatorsApiAutoloader = ASA_LIB_DIR . 'AsaAmazonCreatorsApi/autoload.php';
if (file_exists($creatorsApiAutoloader)) {
require_once $creatorsApiAutoloader;
}
}
include_once(dirname(__FILE__) . '/AsaCore.php');