• 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

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

Input and output values for php into the browser?

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

MISSING UPDATES FOR: MEDIA Drupal 9

Laravel Delete and Update

Must be of the type array, null given,

How to debug in WooCommerce 3+

WordPress Security Standards want me to escape my html, but how to do it correctly?

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

PHP 8.1: strftime() is deprecated

Clients authentication and user authentication with laravel

Two buttons one form

Laravel s3 upload file with metadata using pre-signed url

using random function but it's displaying duplicates

About Contact Privacy policy Terms and conditions