• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

how to youtube api data to print in toolset metabox using a button click before save-post

phpwordpressbuttonclickmeta-boxesdevtoolset


PHP Snippet 1:

<script>
    jQuery('.Import').live('click', function(e) {
        e.preventDefault();
        jQuery('#save').click();
    });
              
    </script>

PHP Snippet 2:

$ytURL = get_post_meta(get_the_ID(), 'wpcf-song-av', true);

PHP Snippet 3:

$ytURL = $_POST['ytext'];

PHP Snippet 4:

<input id="textbox_id" name="ytext" placeholder="YT ID here" type="text" />
<input type="submit"  name="Import" class="Import" id="Import"  />

Related Snippets

Woocommerce Checkout - Add conditional field required if one field is filled

How to validate Envato Purchase Code in PHP

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

JQuery content editable div and text box on submit not sending POST

Detect if PHP session exists

Filter WooCommerce products with post__in and additional meta queries

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

Cache clear probem in Larave

stay with the last 15 elements of an array [duplicate]

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Auto increment id JSON

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Applying programmatically a coupon to an Order in WooCommerce3

How to set dynamic `home` and `siteurl` in WordPress?

get data-value with variable value

About Contact Privacy policy Terms and conditions