• 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 Create WooCommerce Subscription Product via. REST API?

Target Laravelista is not instantiable

advanced custom fields wordpress custom class

Yii2 select2 database exception number of bound variables does not match number of tokens

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

XSS attack still works despite htmlspecialchars() doing its work

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

How to redirect to another page and call a Function there on Angular ng-click

Add custom text under order details on WooCommerce My account view order pages

MISSING UPDATES FOR: MEDIA Drupal 9

How to show a popup modal in codeIgniter?

ORA-12546: TNS:permission denied error connection to remote oracle server

Put content of wordpress page inside div

nginx err_connection_refused, can anyone help me?

Magento 2 - How to add new block to admin panel in product page?

About Contact Privacy policy Terms and conditions