• 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 programmatically find public properties of a class from inside one of it's methods

Wordpress how to get the post thumbnail inside a figure tag

Mysqli Output to a table

Merge column values from two arrays to form an indexed array of associative arrays

array_map triple dimensional array [duplicate]

Inserting Country Selection into MySQL PHP [duplicate]

Warning: A non-numeric value encountered

Adding custom body class to the custom archive pages

PHPS source file - 403 Forbidden You don't have permission to access this resource

Confirm Leave on External Links in Wordpress

Apply filter array/return terms

Parameter is not sent to Laravel route in Ajax

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Unable to create lockable file - Laravel 8 & PHP 8

PHP and WebView - Cookie doesn't are the same

About Contact Privacy policy Terms and conditions