• 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

add " ? " in url via htaccess RewriteRule

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

How to set dynamic `home` and `siteurl` in WordPress?

How to access a var with "-" in PHP [duplicate]

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Post Form Data To phpmyadmin Database

How to disable only_full_group_by option in Laravel

Sum array values of a column within each column of an array with 3 levels

How to use React Router with Laravel?

Update Order custom Field value with WooCommerce REST API

PHP Download MP3 files from directory on server

Object of class stdClass could not be converted to string error

how to create html table in php

Laravel - How to properly generate unique slugs from article titles?

About Contact Privacy policy Terms and conditions