pay per view metafield control

Can you tell me how to apply pay per view to a meta profile field? I want to hide contact information of users and people will have to pay a fee to view the contact information for each user they wish to see that info for.

  • Jack Kitterhing
    • Code Norris

    Hi there @leslie,

    Hope you're well today and sorry about the delay here.

    I've done some checking here and while I don't have access to that code as it's a premium plugin, you'll need to protect the content by using something the wpmudev_ppw_html function like

    <?php
    if ( function_exists( 'wpmudev_ppw_html' ) ) {
    $html = '<iframe width="560" height="315" src="http://www.youtube.com/embed/-uiN9z5tqhg?wmode=transparent&" frameborder="0" allowfullscreen></iframe>'; // html code to be protected (required)
    $id = 1; // An optional unique id if you are using the function more than once on a single page
    $description = 'video'; // Optional description of the protected content
    $price = '1.50'; // Optional price for a single view. If not set, price set in the post will be applied. If that is not set either, Unit Price in the Global Settings will be used.
    echo wpmudev_ppw_html( $html, $id, $description, $price );
    }
    ?>

    In your template where the user profiles are called and the fields displayed.

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.