• 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 avoid Moved Permanently The document has moved here

Adding hreflang tags automatically in WordPress subdirectory multisite

PHP Discord OAUTH2 code sample not working

PHP and WebView - Cookie doesn't are the same

PHP: How to raise number to (tiny) fractional exponent?

PHP Imap , php 7.4.3 on mac osx catalina

Why i get wrong output for html markdown?

PHP, how to convert Int value to Week days

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Filter WooCommerce related products by Polylang language

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

renameColumn migration fails for existing column with columns does not exist error

"There is no active transaction" when refreshing database in Laravel 8.0 test

How to create a video stream from a single dynamic image in PHP

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

About Contact Privacy policy Terms and conditions