WP Simple Pay Documentation

Documentation, Reference Materials, and Tutorials for WP Simple Pay

How to Resolve All In One SEO Shortcode Conflicts

When using WP Simple Pay along with All in One SEO (AIOSEO), in some instances, you will need to add a code snippet to exclude our shortcodes from being parsed by AIOSEO. If you manually define custom excerpts that do not include WP Simple Pay shortcodes, you should not need to add this code.

If your users are unable to update their payment method with AIOSEO activated, add the following custom code snippet to your theme’s functions.php or as a custom plugin:

/**
 * Plugin Name: WP Simple Pay - AIOSEO Compatibility
 */
add_filter(
	'aioseo_conflicting_shortcodes',
	function ( $conflicting_shortcodes ) {
		$conflicting_shortcodes = array_merge(
			$conflicting_shortcodes,
			array(
				'WP Simple Pay Form' => 'simpay',
				'WP Simple Pay Receipt' => 'simpay_payment_receipt',
			)
		);

		return $conflicting_shortcodes;
	}
);

If you are unfamiliar with adding custom code to WordPress, please review this documentation.

This will prevent AIOSEO from pre-parsing the WP Simple Pay shortcodes and causing errors.

Still have questions? We’re here to help!

Last Modified:

Start Accepting Payments Today

Start accepting one-time and recurring payments or donations on your WordPress website.