• 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

PHP contact form configuration [duplicate]

Group rows by column and sum another column within groups [duplicate]

Submitting a form with ajax in Wordpress

How to Create WooCommerce Subscription Product via. REST API?

Laravel 5.5 change unauthenticated login redirect url

How to submit the custom form data in database in WordPress without plugin using ajax?

Yii2: How do I debug console commands?

jQuery Ajax Post with data

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

How to debug in WooCommerce 3+

PHP how to detect if running on arm64 cpu?

*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini

Make survey at laravel 5.4 and MySQL

echo language construct is discouraged. (PHP)

Apply session id from request header

About Contact Privacy policy Terms and conditions