• 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

Get WooCommerce products from specific category

Xdebug 3 not showing in phpinfo on m1 Monterey

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

Add restriction to WooCommerce coupons by allowed user ID

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

PHP Find Array Index value in multi-line array

(Cache::lock()) -> get() -- Under what conditions does it return false?

correct PHP headers for pdf file download

wordpress function breaks wp-admin

php echo remove slashes from url [duplicate]

MySQL - Connection failed: No route to host

(Laravel) How to delete multiple models including optional relationships?

How to get an Array value inside an object in an array Php [duplicate]

How to use $this->session->set_userdata in codeigniter

About Contact Privacy policy Terms and conditions