• 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

str_replace or preg_replace random number from string

Sum array values

Filter WooCommerce products with post__in and additional meta queries

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

IlluminateDatabaseQueryException could not find driver [duplicate]

How to loop sql table data inside a html table

Target Individual Form Instance/Counter Inside A PHP While Loop

dompdf and img tag, image wont show

Make certain characters of a word from string bold

PHP array slice from position + attempt to return fixed number of items

Access relation of pivot table in Laravel

Issue with laravel eloquent model property

TesseractOCR not working for Laravel

html-php form submission after validation through JavaScript [closed]

Valet, Xdebug after reboot Big Sur not working

About Contact Privacy policy Terms and conditions