• 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 do i retrieve and display the alt text of an image in wordpress?

How to add a heading in between checkout fields of WooCommerce

Adding hreflang tags automatically in WordPress subdirectory multisite

how to upload binary image to sql server using php laravel

Can I use a WooCommerce function without any WooCommerce page?

Set quantity minimum, maximum and step at product level in Woocommerce

Distribute array row data to make multiple new rows

ConstraintViolationListInterface to Exception in Symfony

Cant seem to get the Pagination to work on my WooCommerce REST API application?

Spam Filter in Contact Form

PHP - Store information with NO database

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Laravel 5 session not persisting after user is logged in

How to set a domain name with php artisan serve

GRPC installed successfully on ubuntu but php is looking for it in another folder

About Contact Privacy policy Terms and conditions