Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Correctly accessing the stamp_api from functions.php

by

Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › Correctly accessing the stamp_api from functions.php

Tagged: api, integration

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 9 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 25, 2012 at 12:17 am #6978
    mbudm
    Member

    Hi there,

    I’ve integrated the pdf stamper into my theme and I just wanted to double check that I’m accessing the api and the secret key in the best way possible.

    This theme is currently just for my site. But I’m also genericising it and in a few weeks I will be adding it to a theme marketplace. I will leave in the support for pdf-stamper and if buyers of my theme want to also buy your plugin then they can.

    Anyway – let me know if you want to see the whole of my stamper code. In reality you probably only need to see how I’m getting the values.

    // Post URL (Get this value from the Integration Help menu of this plugin)

    $postURL = get_option(‘WP_PDF_STAMP_URL’) . ‘/api/stamp_api.php’;

    // The Secret key (Get this value from the settings menu of this plugin)

    $secretKey = get_option(‘wp_pdf_stamp_secret_key’);

    Of course, I’ll only attempt to use the pdf-stamper if the theme admin user has specifically set my theme option ‘use-pdf-stamper’ to true, otherwise i revert to using php copy()

    Thanks,

    S

    July 25, 2012 at 4:59 am #47752
    admin
    Keymaster

    Yes, your code looks fine.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ