su_get_plugin_version

The shortcodes-ultimate su get plugin version function.

Published Date - February 15, 2021

Description

Retrieve the current version of the plugin.

su_get_plugin_version();

Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_get_plugin_version' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/functions-helpers.php';
}



// NOTICE! Understand what this does before running.
$result = su_get_plugin_version();
            

Defined

The function is defined in the following location(s).

shortcodes-ultimate/includes/functions-helpers.php

function su_get_plugin_version() {
	return get_option( 'su_option_version', '0' );
}