• 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

MongoDB Duplicate Documents even after adding unique key

"cannot list resources" error from WooCommerce REST API

How to loop sql table data inside a html table

How to Install Composer Require doctrine/dbal

CodeIgniter 4: Like and Dislike Functionality

Laravel phpunit test failing authorization

sort() not affecting original array while inside foreach loop

wp_remote_get() not passing authentication

PHP: Print caught exception like Xdebug

Correct way to use LIKE '%{$var}%' with prepared statements?

CodeIgniter extend CI_URI undefined method

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

Add bold text and line break into Laravel Notification Email

PHP only Hit Counter?

PHP-Sort array based on another array?

About Contact Privacy policy Terms and conditions