Offering Options Not In The Wordpress Framework

My target market is in a niche that likes "Done For You" options. How can I make VA (Virtual Assistant) type options available as part of a level? How can I automate the notifications and such that need to be sent to the VA specialists?

The services would include things like post authoring, manual on page and off page seo tasks, video and webinar production, tutoring students, etc. These VA specialists would need to know which blog they have been assigned, and be given access, with access removed in case the blog is shut down for one reason or another.

Thanks,
Kirk

  • Tyler Postle

    Hey Kirk,

    Hope you're doing well today!

    This is a very cool idea :slight_smile: your best bet here would be to find a plugin that could facilitate that communication then link it to a certain Pro Site level using the "Premium Plugins" module so only they can use it.

    I'm thinking a forms plugin could work here. Like Contact Form 7 or Gravity Forms.

    Then you could create a form with it that lets the site owner contact different VA's depending on their needs. Only a site with the "VA level" would be able to access this form.

    When the VA receives the email, they will know which site it came from. You could ask in the form for the user to include login credentials in it too.

    Would something like that work? or you could just give all your VA's super admin access if you trust them and they can access any site they need too. That way the user doesn't need to send any credentials along.

    Hope this helps! Let us know if you have any further questions.

    All the best,
    Tyler

  • Kirk Ward

    Do not want to give Super Admin status as that would expose sensitive information (ex. Access to the Pro Sites plugin would expose the Stripe public and secret keys, making transfer information available to other plugins.)

    A communication plugin that sent notifications at activation and deactivation might work, but there would be security concerns there also, as it would have to be roles based.

  • Tyler Postle

    Hey Kirk,

    Hope you're doing well today. It sounds like you might need to develop a custom solution in order to get exactly what you're after here.

    A communication plugin that sent notifications at activation and deactivation might work, but there would be security concerns there also, as it would have to be roles based.

    So it would only need to send notifications at activation and deactivation? Pro Sites itself will actually send emails to the admin of the site on activation and deactivation. Or are you wanting those to be sent to someone else as well?

    Cheers,
    Tyler

  • Kirk Ward

    Pro Sites itself will actually send emails to the admin of the site on activation and deactivation. Or are you wanting those to be sent to someone else as well?

    I would like a notice sent to someone else.

    Here's one example.

    I have two plugins, (a) Content Syndication Toolkit, and (b) Content Syndication Toolkit Reader.

    The Content Syndication Toolkit Reader may be considered a 'recipient' and is activated on all the sites where the customer is subscribed at Pro Sites Level 4, while the 'source' plugin, the Content Syndication Toolkit is installed on the VA vendor site, whether in the network or on a standalone.

    The 'source' plugin will send content produced by the VA vendor to the 'recipient' plugin, allowing me to provide "Done For You" content to my Pro Sites customers at that level.

    I need for the VA vendor to be able to receive a notification when a recipient site has been deactivated so she will not continue to produce content for the customer.

    Cheerios, and Wheatabix!
    Kirk

  • Tyler Postle

    Hey Kirk,

    Thanks for the explanation, this would involve some custom development for sure. Will the VA differ per site or per job? We might be able to create something for you that sends those emails to one other email but in order to dynamically send it to different emails based on VA, that would be more difficult and you may want to hire a developer to create it for you, we do have a jobs board that I think I may have mentioned to you before - apologies if I'm repeating myself: https://premium.wpmudev.org/wordpress-development/

    Look forward to hearing back Kirk! Sorry for the delay on this one.

    Cheers,
    Tyler

  • Kirk Ward

    Wullo Tyler,

    Thanks for the reply.

    The offerings I am thinking of could have from 1 to n different VA's. One for the site, or one per task, varying upon what services I could find to offer to my market. FYI - my market is a category of licensed professionals who are usually sole practitioners who usually feel they do not have the time to do required online marketing tasks. They wind up doing their production.

    Since this idea is formative for Pro Sites, I will describe how it is implemented with another product I use. In the product, the admin interface has a text box for third party notifications. In there, I enter a list of comma separated emails for notifications I wish sent when the product is activated or deactivated. I am thinking that in this case, it would require such an interface, listing all the plugins, with a checkbox and a text input box beside each plugin named. This would most likely be safest if it was a Pro sites module, separate from the other modules.

    Since at this time I am only having one VA, the content Creator, I can merely add a second email wherever the send mail function is in Pro Sites. Can you point me to where that code lies and I can add it myself.

    Cheers

  • Tyler Postle

    Hey Kirk,

    Thanks for your detailed reply.

    I think that's a cool idea for sure. We don't get many requests for VA features like this - I'm going to move this to features and requests :slight_smile:

    Since at this time I am only having one VA, the content Creator, I can merely add a second email wherever the send mail function is in Pro Sites. Can you point me to where that code lies and I can add it myself.

    The send mail function is around line 2617 of the pro-sites.php file. /wp-content/plugins/pro-sites/pro-sites.php

    However, I'm going to flag one of our coding experts on this for you as I think we'll be able to do up a little snippet for you so you don't need to add the email to the core file itself :slight_smile: this way it will be update safe.

    Keep in mind SLS(coding experts) deal with more complex threads so can sometimes take longer to reply than usual.

    If you have any further questions in the meantime just let us know!

    All the best,
    Tyler

    I'm going to flag one of our coding experts on this, as I believe

  • Hoang Ngo

    Hi there,

    I hope you are well today and many thanks for your cool ideas :slight_smile:

    For sending the email, I think we can try this code. Please add this code to your theme functions.php or use mu-plugins

    add_action( 'psts_withdraw', 'send_email_virtual_assistant', 10, 2 );
    function send_email_virtual_assistant( $blog_id, $new_expire ) {
    	global $psts;
    	if ( ! defined( 'PSTS_NO_EXPIRE_EMAIL' ) && '9999999999' != $psts->get_expire( $blog_id ) ) {
    		// used in all emails
    		$search_replace = array(
    			'LEVEL'       => $psts->get_level_setting( $psts->get_level( $blog_id ), 'name' ),
    			'SITEURL'     => get_home_url( $blog_id ),
    			'SITENAME'    => get_blog_option( $blog_id, 'blogname' ),
    			'CHECKOUTURL' => $psts->checkout_url( $blog_id )
    		);
    		// send emails as html (fixes some formatting issues with currencies)
    		$mail_headers = array( 'Content-Type: text/html' );
    		$e            = array(
    			'msg'     => $psts->get_setting( 'expired_msg' ),
    			'subject' => $psts->get_setting( 'expired_subject' )
    		);
    
    		$e     = str_replace( array_keys( $search_replace ), $search_replace, $e );
    		//please update the email here
    		$email = '';
    		wp_mail( $email, $e['subject'], nl2br( $e['msg'] ), implode( "\r\n", $mail_headers ) );
    	}
    }

    Please note that, you will need to update the $email variable to your VA email.

    Best regards,
    Hoang

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.