• 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

Remove categories with all childs derived from parent category

Custom add to cart button URL for specific product in WooCommerce?

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

Change the alert text on add to cart action without selected variation in Woocommerce

Make Shipping Method fields Mandatory on Woocommerce checkout page

Telegram bot doesn't answer

Pagekite error: FAIL: localhost:8080 is down

shell errors running php exec

Wordpress 'post_type_link' hides permalink

add uri parameter to Route name in laravel

Prestashop webservice API creating cart rules

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Laravel 8: Array to string conversion while calling route:list

PHPExcel export HTML table to xlsx

About Contact Privacy policy Terms and conditions