• 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

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

Symfony Error: "An exception has been thrown during the rendering of a template"

Laravel implode array items to new lines

woocommerce_wp_select options array from product attribute terms

How to get monthly wise data in laravel

How to fix bootstrap multiselect search data using ajax

PHPS source file - 403 Forbidden You don't have permission to access this resource

echo language construct is discouraged. (PHP)

Convert date and time to Jalali in Laravel

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

php retrieve specific data onclick from database in a list format

Show only featured products in Woocommerce shop page

Symfony autowiring issues since docker update

Creating command to backup MySql database in Laravel

Webscraping Symfony/Panther: Can't get HTML

About Contact Privacy policy Terms and conditions