Version Description
- Improvement: added usage examples of WP All Import and REST API.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- admin/html/css/menu.css +3 -2
- admin/html/menu.html +28 -8
- admin/meta-box.php +4 -3
- featured-image-from-url.php +1 -1
- readme.txt +6 -0
admin/html/css/menu.css
CHANGED
@@ -48,7 +48,8 @@
|
|
48 |
|
49 |
th, td {
|
50 |
border-bottom: 1px solid #ddd;
|
51 |
-
padding-right:
|
|
|
52 |
font-weight: normal;
|
53 |
}
|
54 |
|
@@ -65,4 +66,4 @@ th {
|
|
65 |
#grad2 {
|
66 |
border: 1px dashed red;
|
67 |
border-radius: 1px;
|
68 |
-
}
|
48 |
|
49 |
th, td {
|
50 |
border-bottom: 1px solid #ddd;
|
51 |
+
padding-right: 8px;
|
52 |
+
padding-left: 8px;
|
53 |
font-weight: normal;
|
54 |
}
|
55 |
|
66 |
#grad2 {
|
67 |
border: 1px dashed red;
|
68 |
border-radius: 1px;
|
69 |
+
}
|
admin/html/menu.html
CHANGED
@@ -1540,6 +1540,7 @@
|
|
1540 |
<li><a href="#tabs-1">Endpoints</a></li>
|
1541 |
<li><a href="#tabs-2">Custom Fields</a></li>
|
1542 |
<li><a href="#tabs-3">Creating your first product...</a></li>
|
|
|
1543 |
<li><a href="#tabs-4">product variation...</a></li>
|
1544 |
<li><a href="#tabs-5">post...</a></li>
|
1545 |
</ul>
|
@@ -1558,6 +1559,12 @@
|
|
1558 |
http://yourdomain/wp-json/wc/v3/products
|
1559 |
</th>
|
1560 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
1561 |
<tr>
|
1562 |
<th>Product Variation</th>
|
1563 |
<th>
|
@@ -1587,6 +1594,12 @@
|
|
1587 |
http://yourdomain/wp-json/wc/v3/products/{id}
|
1588 |
</th>
|
1589 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
1590 |
<tr>
|
1591 |
<th>Product Variation</th>
|
1592 |
<th>
|
@@ -1612,7 +1625,7 @@
|
|
1612 |
</tr>
|
1613 |
<tr>
|
1614 |
<th>
|
1615 |
-
|
1616 |
</th>
|
1617 |
<th>
|
1618 |
fifu_image_url
|
@@ -1620,7 +1633,7 @@
|
|
1620 |
</tr>
|
1621 |
<tr>
|
1622 |
<th>
|
1623 |
-
|
1624 |
</th>
|
1625 |
<th>
|
1626 |
fifu_image_alt
|
@@ -1671,25 +1684,32 @@
|
|
1671 |
|
1672 |
<div id="tabs-3">
|
1673 |
|
1674 |
-
<iframe src="../wp-content/plugins/
|
1675 |
width="800px" height="250px" ></iframe>
|
1676 |
|
1677 |
</div>
|
1678 |
|
1679 |
<div id="tabs-4">
|
1680 |
|
1681 |
-
<iframe src="../wp-content/plugins/
|
1682 |
width="800px" height="450px" ></iframe>
|
1683 |
|
1684 |
</div>
|
1685 |
|
1686 |
<div id="tabs-5">
|
1687 |
|
1688 |
-
<iframe src="../wp-content/plugins/
|
1689 |
width="800px" height="150px" ></iframe>
|
1690 |
|
1691 |
</div>
|
1692 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1693 |
</div>
|
1694 |
|
1695 |
</div>
|
@@ -1983,7 +2003,7 @@
|
|
1983 |
</div>
|
1984 |
|
1985 |
<div id="tabs-3">
|
1986 |
-
<a href="../wp-content/plugins/
|
1987 |
<br>
|
1988 |
<br>
|
1989 |
<center><img src="https://c1.staticflickr.com/1/216/31480097476_bf4915184b_o_d.jpg" style="width:90%"></center>
|
@@ -2106,7 +2126,7 @@
|
|
2106 |
</div>
|
2107 |
|
2108 |
<div id="tabs-3">
|
2109 |
-
<a href="../wp-content/plugins/
|
2110 |
<br>
|
2111 |
<br>
|
2112 |
<img src="https://c1.staticflickr.com/5/4860/44640581850_30311e210a_c_d.jpg" style="width:100%">
|
@@ -2122,7 +2142,7 @@
|
|
2122 |
</div>
|
2123 |
<div id="tabs-d">
|
2124 |
<div class="box">
|
2125 |
-
<h2>
|
2126 |
<div class="greybox">
|
2127 |
If you need any help, you can refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a> or send an email to <b>marcel@featuredimagefromurl.com</b> (send me this <b><button id="opener">data</button></b>, please).
|
2128 |
</div>
|
1540 |
<li><a href="#tabs-1">Endpoints</a></li>
|
1541 |
<li><a href="#tabs-2">Custom Fields</a></li>
|
1542 |
<li><a href="#tabs-3">Creating your first product...</a></li>
|
1543 |
+
<li><a href="#tabs-6">product category...</a></li>
|
1544 |
<li><a href="#tabs-4">product variation...</a></li>
|
1545 |
<li><a href="#tabs-5">post...</a></li>
|
1546 |
</ul>
|
1559 |
http://yourdomain/wp-json/wc/v3/products
|
1560 |
</th>
|
1561 |
</tr>
|
1562 |
+
<tr>
|
1563 |
+
<th>Product Category</th>
|
1564 |
+
<th>
|
1565 |
+
http://yourdomain/wp-json/wc/v3/products/categories
|
1566 |
+
</th>
|
1567 |
+
</tr>
|
1568 |
<tr>
|
1569 |
<th>Product Variation</th>
|
1570 |
<th>
|
1594 |
http://yourdomain/wp-json/wc/v3/products/{id}
|
1595 |
</th>
|
1596 |
</tr>
|
1597 |
+
<tr>
|
1598 |
+
<th>Product Category</th>
|
1599 |
+
<th>
|
1600 |
+
http://yourdomain/wp-json/wc/v3/products/categories/{id}
|
1601 |
+
</th>
|
1602 |
+
</tr>
|
1603 |
<tr>
|
1604 |
<th>Product Variation</th>
|
1605 |
<th>
|
1625 |
</tr>
|
1626 |
<tr>
|
1627 |
<th>
|
1628 |
+
Image
|
1629 |
</th>
|
1630 |
<th>
|
1631 |
fifu_image_url
|
1633 |
</tr>
|
1634 |
<tr>
|
1635 |
<th>
|
1636 |
+
Image Alt
|
1637 |
</th>
|
1638 |
<th>
|
1639 |
fifu_image_alt
|
1684 |
|
1685 |
<div id="tabs-3">
|
1686 |
|
1687 |
+
<iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/product.txt"
|
1688 |
width="800px" height="250px" ></iframe>
|
1689 |
|
1690 |
</div>
|
1691 |
|
1692 |
<div id="tabs-4">
|
1693 |
|
1694 |
+
<iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/product-variation.txt"
|
1695 |
width="800px" height="450px" ></iframe>
|
1696 |
|
1697 |
</div>
|
1698 |
|
1699 |
<div id="tabs-5">
|
1700 |
|
1701 |
+
<iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/post.txt"
|
1702 |
width="800px" height="150px" ></iframe>
|
1703 |
|
1704 |
</div>
|
1705 |
|
1706 |
+
<div id="tabs-6">
|
1707 |
+
|
1708 |
+
<iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/product-category.txt"
|
1709 |
+
width="800px" height="225px" ></iframe>
|
1710 |
+
|
1711 |
+
</div>
|
1712 |
+
|
1713 |
</div>
|
1714 |
|
1715 |
</div>
|
2003 |
</div>
|
2004 |
|
2005 |
<div id="tabs-3">
|
2006 |
+
<a href="../wp-content/plugins/featured-image-from-url/admin/html/txt/csv-woo.txt">CSV example</a>
|
2007 |
<br>
|
2008 |
<br>
|
2009 |
<center><img src="https://c1.staticflickr.com/1/216/31480097476_bf4915184b_o_d.jpg" style="width:90%"></center>
|
2126 |
</div>
|
2127 |
|
2128 |
<div id="tabs-3">
|
2129 |
+
<a href="../wp-content/plugins/featured-image-from-url/admin/html/txt/csv.txt">CSV example</a>
|
2130 |
<br>
|
2131 |
<br>
|
2132 |
<img src="https://c1.staticflickr.com/5/4860/44640581850_30311e210a_c_d.jpg" style="width:100%">
|
2142 |
</div>
|
2143 |
<div id="tabs-d">
|
2144 |
<div class="box">
|
2145 |
+
<h2>Fast Support</h2>
|
2146 |
<div class="greybox">
|
2147 |
If you need any help, you can refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a> or send an email to <b>marcel@featuredimagefromurl.com</b> (send me this <b><button id="opener">data</button></b>, please).
|
2148 |
</div>
|
admin/meta-box.php
CHANGED
@@ -16,8 +16,8 @@ function fifu_insert_meta_box() {
|
|
16 |
add_action('add_meta_boxes', 'fifu_add_css');
|
17 |
|
18 |
function fifu_add_css() {
|
19 |
-
wp_register_style('
|
20 |
-
wp_enqueue_style('
|
21 |
}
|
22 |
|
23 |
function fifu_show_elements($post) {
|
@@ -116,7 +116,8 @@ function fifu_wai_save($post_id) {
|
|
116 |
|
117 |
add_action('before_delete_post', 'fifu_db_before_delete_post');
|
118 |
|
119 |
-
|
|
|
120 |
add_action('woocommerce_product_import_inserted_product_object', 'fifu_woocommerce_import');
|
121 |
|
122 |
function fifu_woocommerce_import($object) {
|
16 |
add_action('add_meta_boxes', 'fifu_add_css');
|
17 |
|
18 |
function fifu_add_css() {
|
19 |
+
wp_register_style('featured-image-from-url', plugins_url('/html/css/editor.css', __FILE__));
|
20 |
+
wp_enqueue_style('featured-image-from-url');
|
21 |
}
|
22 |
|
23 |
function fifu_show_elements($post) {
|
116 |
|
117 |
add_action('before_delete_post', 'fifu_db_before_delete_post');
|
118 |
|
119 |
+
/* regular woocommerce import */
|
120 |
+
|
121 |
add_action('woocommerce_product_import_inserted_product_object', 'fifu_woocommerce_import');
|
122 |
|
123 |
function fifu_woocommerce_import($object) {
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://featuredimagefromurl.com/
|
6 |
* Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
-
* Version: 2.3.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://featuredimagefromurl.com/
|
6 |
* Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
+
* Version: 2.3.3
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
readme.txt
CHANGED
@@ -157,6 +157,9 @@ Features:
|
|
157 |
|
158 |
== Changelog ==
|
159 |
|
|
|
|
|
|
|
160 |
= 2.3.2 =
|
161 |
* Improvement: sanitize the URL before saving.
|
162 |
|
@@ -523,6 +526,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
523 |
|
524 |
== Upgrade Notice ==
|
525 |
|
|
|
|
|
|
|
526 |
= 2.3.2 =
|
527 |
* Improvement: sanitize the URL before saving.
|
528 |
|
157 |
|
158 |
== Changelog ==
|
159 |
|
160 |
+
= 2.3.3 =
|
161 |
+
* Improvement: added usage examples of WP All Import and REST API.
|
162 |
+
|
163 |
= 2.3.2 =
|
164 |
* Improvement: sanitize the URL before saving.
|
165 |
|
526 |
|
527 |
== Upgrade Notice ==
|
528 |
|
529 |
+
= 2.3.3 =
|
530 |
+
* Improvement: added usage examples of WP All Import and REST API.
|
531 |
+
|
532 |
= 2.3.2 =
|
533 |
* Improvement: sanitize the URL before saving.
|
534 |
|