• 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

How to Install Composer Require doctrine/dbal

How do I enable error reporting in Laravel?

Debugging Stripe Webhook Event

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

Laravel Unknown Column 'updated_at'

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

XML to CSV with PHP converter [problem with images grabing]

How to get Laravel's CSRF Token from Another Website?

PHP usort() order in case of equality

PHPUnit (Phar) Fatal Error Only When Test Fails

GA4 custom event from server side, can someone tell me how i can do the following code in php?

How to display table header in every page using FPDF library?

How to modify CSS in a specific page of the WP admin dashboard (backend)

Having trouble with PDO queries (Notice: Undefined index)

About Contact Privacy policy Terms and conditions