Featured Image From URL - Version 1.9.12

Version Description

  • Improvement: 10 fields for Custom Post Types.
Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 1.9.12
Comparing to
See all releases

Code changes from version 1.9.11 to 1.9.12

admin/column.php CHANGED
@@ -36,7 +36,7 @@ function fifu_column_content($column, $post_id) {
36
  }
37
 
38
  function fifu_column_custom_post_type() {
39
- for ($i = 0; $i < 5; $i++)
40
  add_filter('manage_edit-' . get_option('fifu_cpt' . $i) . '_columns', 'fifu_column_head');
41
  }
42
 
36
  }
37
 
38
  function fifu_column_custom_post_type() {
39
+ for ($i = 0; $i < 10; $i++)
40
  add_filter('manage_edit-' . get_option('fifu_cpt' . $i) . '_columns', 'fifu_column_head');
41
  }
42
 
admin/html/menu.html CHANGED
@@ -172,7 +172,7 @@
172
  <div class="box">
173
  <h2>Custom Post Types</h2>
174
  <div class="greybox">
175
- Featured Image from URL is preconfigured to work with only one Custom Post Type (WooCommerce Product). But you also can use this plugin with other ones. For that, you just need to know the correct Custom Post Type names and fill the fields below. Please, let me know if you need more than 5 inputs here.
176
  </div>
177
  <br>
178
 
@@ -185,6 +185,12 @@
185
  <input id="fifu_input_cpt2" type="text" name="fifu_input_cpt2" style="width:130px" value="<?php echo $array_cpt[2]; ?>">
186
  <input id="fifu_input_cpt3" type="text" name="fifu_input_cpt3" style="width:130px" value="<?php echo $array_cpt[3]; ?>">
187
  <input id="fifu_input_cpt4" type="text" name="fifu_input_cpt4" style="width:130px" value="<?php echo $array_cpt[4]; ?>">
 
 
 
 
 
 
188
  <input type="submit" value="Submit" >
189
  </form>
190
  </div>
@@ -1594,6 +1600,11 @@ fifu_cpt1:<?php echo $array_cpt[1] ?>;
1594
  fifu_cpt2:<?php echo $array_cpt[2] ?>;
1595
  fifu_cpt3:<?php echo $array_cpt[3] ?>;
1596
  fifu_cpt4:<?php echo $array_cpt[4] ?>;
 
 
 
 
 
1597
  fifu_css:<?php echo $css_style ?>;
1598
  fifu_default_url:<?php echo $default_url ?>;
1599
  fifu_fake:<?php echo $enable_fake ?>;
172
  <div class="box">
173
  <h2>Custom Post Types</h2>
174
  <div class="greybox">
175
+ Featured Image from URL is preconfigured to work with only one Custom Post Type (WooCommerce Product). But you also can use this plugin with other ones. For that, you just need to know the correct Custom Post Type names and fill the fields below. Please, let me know if you need more than 10 inputs here.
176
  </div>
177
  <br>
178
 
185
  <input id="fifu_input_cpt2" type="text" name="fifu_input_cpt2" style="width:130px" value="<?php echo $array_cpt[2]; ?>">
186
  <input id="fifu_input_cpt3" type="text" name="fifu_input_cpt3" style="width:130px" value="<?php echo $array_cpt[3]; ?>">
187
  <input id="fifu_input_cpt4" type="text" name="fifu_input_cpt4" style="width:130px" value="<?php echo $array_cpt[4]; ?>">
188
+ <br/>
189
+ <input id="fifu_input_cpt5" type="text" name="fifu_input_cpt5" style="width:130px" value="<?php echo $array_cpt[5]; ?>">
190
+ <input id="fifu_input_cpt6" type="text" name="fifu_input_cpt6" style="width:130px" value="<?php echo $array_cpt[6]; ?>">
191
+ <input id="fifu_input_cpt7" type="text" name="fifu_input_cpt7" style="width:130px" value="<?php echo $array_cpt[7]; ?>">
192
+ <input id="fifu_input_cpt8" type="text" name="fifu_input_cpt8" style="width:130px" value="<?php echo $array_cpt[8]; ?>">
193
+ <input id="fifu_input_cpt9" type="text" name="fifu_input_cpt9" style="width:130px" value="<?php echo $array_cpt[9]; ?>">
194
  <input type="submit" value="Submit" >
195
  </form>
196
  </div>
1600
  fifu_cpt2:<?php echo $array_cpt[2] ?>;
1601
  fifu_cpt3:<?php echo $array_cpt[3] ?>;
1602
  fifu_cpt4:<?php echo $array_cpt[4] ?>;
1603
+ fifu_cpt5:<?php echo $array_cpt[5] ?>;
1604
+ fifu_cpt6:<?php echo $array_cpt[6] ?>;
1605
+ fifu_cpt7:<?php echo $array_cpt[7] ?>;
1606
+ fifu_cpt8:<?php echo $array_cpt[8] ?>;
1607
+ fifu_cpt9:<?php echo $array_cpt[9] ?>;
1608
  fifu_css:<?php echo $css_style ?>;
1609
  fifu_default_url:<?php echo $default_url ?>;
1610
  fifu_fake:<?php echo $enable_fake ?>;
admin/menu.php CHANGED
@@ -32,7 +32,7 @@ function fifu_get_menu_html() {
32
  $enable_auto_alt = get_option('fifu_auto_alt');
33
 
34
  $array_cpt = array();
35
- for ($x = 0; $x <= 4; $x++)
36
  $array_cpt[$x] = get_option('fifu_cpt' . $x);
37
 
38
  include 'html/menu.html';
@@ -64,7 +64,7 @@ function fifu_get_menu_settings() {
64
  fifu_get_setting('fifu_priority');
65
  fifu_get_setting('fifu_auto_alt');
66
 
67
- for ($x = 0; $x <= 4; $x++)
68
  fifu_get_setting('fifu_cpt' . $x);
69
  }
70
 
@@ -102,7 +102,7 @@ function fifu_update_menu_options() {
102
  fifu_update_option('fifu_input_priority', 'fifu_priority');
103
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
104
 
105
- for ($x = 0; $x <= 4; $x++)
106
  fifu_update_option('fifu_input_cpt' . $x, 'fifu_cpt' . $x);
107
  }
108
 
32
  $enable_auto_alt = get_option('fifu_auto_alt');
33
 
34
  $array_cpt = array();
35
+ for ($x = 0; $x < 10; $x++)
36
  $array_cpt[$x] = get_option('fifu_cpt' . $x);
37
 
38
  include 'html/menu.html';
64
  fifu_get_setting('fifu_priority');
65
  fifu_get_setting('fifu_auto_alt');
66
 
67
+ for ($x = 0; $x < 10; $x++)
68
  fifu_get_setting('fifu_cpt' . $x);
69
  }
70
 
102
  fifu_update_option('fifu_input_priority', 'fifu_priority');
103
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
104
 
105
+ for ($x = 0; $x < 10; $x++)
106
  fifu_update_option('fifu_input_cpt' . $x, 'fifu_cpt' . $x);
107
  }
108
 
admin/meta-box.php CHANGED
@@ -11,7 +11,12 @@ function fifu_insert_meta_box() {
11
  get_option('fifu_cpt1'),
12
  get_option('fifu_cpt2'),
13
  get_option('fifu_cpt3'),
14
- get_option('fifu_cpt4')
 
 
 
 
 
15
  );
16
 
17
  foreach ($post_types as $post_type) {
11
  get_option('fifu_cpt1'),
12
  get_option('fifu_cpt2'),
13
  get_option('fifu_cpt3'),
14
+ get_option('fifu_cpt4'),
15
+ get_option('fifu_cpt5'),
16
+ get_option('fifu_cpt6'),
17
+ get_option('fifu_cpt7'),
18
+ get_option('fifu_cpt8'),
19
+ get_option('fifu_cpt9'),
20
  );
21
 
22
  foreach ($post_types as $post_type) {
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: 1.9.11
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: 1.9.12
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -161,6 +161,9 @@ Features:
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 1.9.11 =
165
  * About button: options report for support purposes.
166
 
@@ -422,6 +425,9 @@ was removed. To finish, a Premium version is now been presented.
422
 
423
  == Upgrade Notice ==
424
 
 
 
 
425
  = 1.9.11 =
426
  * About button: options report for support purposes.
427
 
161
 
162
  == Changelog ==
163
 
164
+ = 1.9.12 =
165
+ * Improvement: 10 fields for Custom Post Types.
166
+
167
  = 1.9.11 =
168
  * About button: options report for support purposes.
169
 
425
 
426
  == Upgrade Notice ==
427
 
428
+ = 1.9.12 =
429
+ * Improvement: 10 fields for Custom Post Types.
430
+
431
  = 1.9.11 =
432
  * About button: options report for support purposes.
433