• 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 can I get new CSRF token in LARAVEL by using ajax

Lumen - Postgresql setup - Composer

Store / Website Column in Magento 2 Admin Grid - Custom Module

Invalid value in field "itemtype" in Google Search Console

How to map the two arrays with a duplicate value?

Laravel insert dynamic input values with radio button

wordpress function breaks wp-admin

backup files to google drive using PHP

How to show selected value using javascript in laravel

How to convert time from one timezone to another in PHP

PHP Download MP3 files from directory on server

Add 2 Webcam in one page with WebcamJS

How to set dynamic `home` and `siteurl` in WordPress?

How to set dynamic `home` and `siteurl` in WordPress?

SlimExceptionHttpNotFoundException

About Contact Privacy policy Terms and conditions