• 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

Split a string array into pieces

Problem with fetching data from database in Laravel

Correctly determine if date string is a valid date in that format

PHP array sort and remove duplicates by two field values

unable to load your default controller on Codeigniter

CodeIgniter extend CI_URI undefined method

Calculating Median of an array in PHP

How to validate Envato Purchase Code in PHP

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

Twig - How to check if variable is a number / integer

Minimum order amount except for specific shipping method in WooCommerce

Get orders by date and status woocommerce

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

PHP: How to solve ob_start() in combination imagepng() issue?

woocommerce_wp_select options array from product attribute terms

About Contact Privacy policy Terms and conditions