• 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 get values inside <![CDATA[values]] > using php DOM?

500 Internal Server Error on Ajax request. Not sure the origin of the problem

How to prevent phpmailer sending embedded image as an attachment on Gmail?

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

Yii2 redirecting to previous page after login

Reload parent page after submit in iframe

How to display MySQL table using php and edit it in a web browser

How to change 'users' auth table and use another instead Laravel

Lumen - Postgresql setup - Composer

Group rows by column and sum another column within groups [duplicate]

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

Update Order custom Field value with WooCommerce REST API

WHM Enabling mod_rewrite

correct PHP headers for pdf file download

CodeIgniter 3 is generating a session file on each request, why?

About Contact Privacy policy Terms and conditions