• 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

Can I write PHP code across multiple lines per statement?

Backend cannot be reached after Typo3 login screen

Parsing JSON File to array in PHP

Hi, I am making a contact form thingy, and my php isn't working any reason why?

GuzzleHttp Hangs When Using Localhost

Last order would be re-order in wooCommerce. How is it possible?

Currently Using CodeIgniter Framework i have an Error

Laravel 5.2: Unable to locate factory with name [default]

Navigation idle on content download

How to Create WooCommerce Subscription Product via. REST API?

Show only featured products in Woocommerce shop page

Image upload not working through ajax Laravel

Eloquent insert id with sequence next value

How to send image,audio or video through the WhatsApp API - PHP

How to install php_imagick on wamp64

About Contact Privacy policy Terms and conditions