• 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 Display Data in Yajra Datatables Laravel 7?

Transpose and flatten multiple rows of array data [duplicate]

How to run or debug php on Visual Studio Code (VSCode)

Saving Data from form to database using AngularJS and php

How to check user Permissions using Custom Middleware in Laravel

Get orders by date and status woocommerce

add uri parameter to Route name in laravel

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

get data-value with variable value

Whats the point of running Laravel with the command 'php artisan serve'?

Make Shipping Method fields Mandatory on Woocommerce checkout page

Invalid value in field "itemtype" in Google Search Console

Add New Parameter to Existing URL using htaccess

Prestashop cUrl Login

Adding the custom page with add_menu_page function on Wordpress

About Contact Privacy policy Terms and conditions