Get Post Share Count

If you want to use MashShare's native function for collecting the sharecount just use the function:
getSharedcount( $url );

It returns an integer value with the share count of the $url string parameter.

Disable redirect screen after activation

When MashShare is activated it redirects to its welcome screen. If you want to prevent that you can use the function below:
/**
 * Disable MashShare welcome page redirect.
 *
 * Use this if you are using  TGM Plugin Activation to install some plugins.
 */
function prefix_mashshare_disable_welcome_redirect() {
	delete_transient( '_mashsb_activation_redirect' );
}

Still need help? Contact Us Contact Us