• 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

Login if user is active using Laravel Breeze

IlluminateDatabaseQueryException could not find driver [duplicate]

Results page in other window

Display the WooCommerce product price inside a custom function

Ajax GET request fails in laravel 8

Get WooCommerce products from specific category

PHPUnit (Phar) Fatal Error Only When Test Fails

how to remove white space in select 2

Facebook API, get page post link (PHP)

Can I write PHP code across multiple lines per statement?

How can I create a Download Page with post php method?

How do I enable error reporting in Laravel?

Laravel 5.5 change unauthenticated login redirect url

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

About Contact Privacy policy Terms and conditions