• 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 loop through json response data using ajax jquery?

MongoDB Duplicate Documents even after adding unique key

WHM Enabling mod_rewrite

Sort a multidimensional array by integer inside of a string value which is two levels down

Symfony Mercure "Failed to send an update"

Adding hreflang tags automatically in WordPress subdirectory multisite

Laravel: Create morphs() relationship nullable

How to install php_imagick on wamp64

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

Two buttons one form

How to use $this->session->set_userdata in codeigniter

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

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

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

About Contact Privacy policy Terms and conditions