Help Archive - Freddie Lore https://labs.freddielore.com/help/ WordPress Plugin Developer Mon, 14 Mar 2022 02:01:24 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.5 https://labs.freddielore.com/wp-content/uploads/2017/06/cropped-favicon-32x32.png Help Archive - Freddie Lore https://labs.freddielore.com/help/ 32 32 smart_seo_update_empty_cell https://labs.freddielore.com/help/documentation/filters/smart_seo_update_empty_cell/ Fri, 22 Oct 2021 01:51:39 +0000 https://labs.freddielore.com/?post_type=docs&p=2193 Description By default, Smart SEO CSV Import/Export imports every single data found in your CSV including empty cells. You can skip processing empty cells and only update those explicitly defined in the import file using smart_seo_update_empty_cell (introduced in v7.6.6) Usage example add_filter( 'smart_seo_update_empty_cell', '__return_false' );

The post smart_seo_update_empty_cell appeared first on Freddie Lore.

]]>
Description

By default, Smart SEO CSV Import/Export imports every single data found in your CSV including empty cells. You can skip processing empty cells and only update those explicitly defined in the import file using smart_seo_update_empty_cell (introduced in v7.6.6)

Usage example

add_filter( 'smart_seo_update_empty_cell', '__return_false' );

The post smart_seo_update_empty_cell appeared first on Freddie Lore.

]]>
Export and Import Post Categories, Custom Taxonomies and Tags https://labs.freddielore.com/help/documentation/examples/export-categories-custom-taxonomies-and-tags/ Thu, 30 Sep 2021 07:21:15 +0000 https://labs.freddielore.com/?post_type=docs&p=2178 Apart from SEO meta data, you can export additional data as well to export and import. Below demonstrates how you can export posts’ categories and tags with ease:

The post Export and Import Post Categories, Custom Taxonomies and Tags appeared first on Freddie Lore.

]]>
Apart from SEO meta data, you can export additional data as well to export and import. Below demonstrates how you can export posts’ categories and tags with ease:

The post Export and Import Post Categories, Custom Taxonomies and Tags appeared first on Freddie Lore.

]]>
Export WooCommerce products data to CSV for bulk editing https://labs.freddielore.com/help/documentation/examples/export-woocommerce-products-data-to-csv-for-bulk-editing/ Thu, 30 Sep 2021 07:18:48 +0000 https://labs.freddielore.com/?post_type=docs&p=2179 In this example, we will use smart_seo_export_fields filter and smart_seo_import_update hook to export and update a few WooCommerce’s products data, as follows: short product description full product description product price

The post Export WooCommerce products data to CSV for bulk editing appeared first on Freddie Lore.

]]>
In this example, we will use smart_seo_export_fields filter and smart_seo_import_update hook to export and update a few WooCommerce’s products data, as follows:

  • short product description
  • full product description
  • product price

The post Export WooCommerce products data to CSV for bulk editing appeared first on Freddie Lore.

]]>
Create posts in bulk with custom fields via CSV import https://labs.freddielore.com/help/documentation/examples/create-posts-in-bulk-with-custom-fields-via-csv-import/ Sat, 11 Sep 2021 05:58:21 +0000 https://labs.freddielore.com/?post_type=docs&p=2152 In this example, we will show you how you can exploit smart_seo_import_update to easily create posts/pages in one go via CSV import. First off, let’s prepare our CSV. Here, we will create a post with location as post type with the following custom fields: address suburb coordinates phone Your CSV may look like this: post_id Continue Reading …

The post Create posts in bulk with custom fields via CSV import appeared first on Freddie Lore.

]]>
In this example, we will show you how you can exploit smart_seo_import_update to easily create posts/pages in one go via CSV import. First off, let’s prepare our CSV.

Here, we will create a post with location as post type with the following custom fields:

  • address
  • suburb
  • coordinates
  • phone

Your CSV may look like this:

post_idpost_typepost_titleaddresssuburbcoordinatesphone
0locationBP Beeliar701 Beeliar Dr, Cockburn Central WA 6164Cockburn Central-32.1273058,115.8412204(08) 1234 5678
0locationIGA KinrossKinross Central Shopping Centre Cnr Selkirk Ave &, Connolly Dr, Kinross WA 6028, AustraliaKinross-31.7183214,115.7393733+61893049748
0locationMalibu Fresh EssentialsUnit 9 Malibu Rd, Safety Bay WA 6169, AustraliaSafety Bay-32.303732,115.7421268(08) 1234 5678
0locationIGA Kingsley100 Kingsley Dr, Kingsley WA 6026, AustraliaKingsley-31.8079966,115.7876127+61894097088

Add below’s code in your theme’s functions.php file:

The post Create posts in bulk with custom fields via CSV import appeared first on Freddie Lore.

]]>
Bulk update featured images by URL with duplicate detection https://labs.freddielore.com/help/documentation/examples/bulk-update-featured-images-by-url-with-duplicate-detection/ Sat, 11 Sep 2021 03:15:18 +0000 https://labs.freddielore.com/?post_type=docs&p=2128 Using smart_seo_export_fields and smart_seo_import_update hooks to bulk update featured images by URL with duplicates detection

The post Bulk update featured images by URL with duplicate detection appeared first on Freddie Lore.

]]>
Using smart_seo_export_fields and smart_seo_import_update hooks to bulk update featured images by URL with duplicates detection

The post Bulk update featured images by URL with duplicate detection appeared first on Freddie Lore.

]]>
smart_seo_import_update https://labs.freddielore.com/help/documentation/hooks/smart_seo_import_update/ Sat, 11 Sep 2021 03:13:05 +0000 https://labs.freddielore.com/?post_type=docs&p=2115 Description Lets you perform additional update operation during import for each post Parameters $post_id integerThe post/page ID $data arrayAn array of CSV row data $columns arrayAn array of CSV heading data Usage example More Examples Using smart_seo_export_fields and smart_seo_import_update to bulk update WooCommerce product data via CSV import

The post smart_seo_import_update appeared first on Freddie Lore.

]]>
Description

Lets you perform additional update operation during import for each post

Parameters

  • $post_id integer
    The post/page ID
  • $data array
    An array of CSV row data
  • $columns array
    An array of CSV heading data

Usage example

More Examples

Using smart_seo_export_fields and smart_seo_import_update to bulk update WooCommerce product data via CSV import

The post smart_seo_import_update appeared first on Freddie Lore.

]]>
smart_seo_export_fields https://labs.freddielore.com/help/documentation/filters/smart_seo_export_fields/ Sat, 11 Sep 2021 03:09:49 +0000 https://labs.freddielore.com/?post_type=docs&p=2113 Description Lets you export other custom fields to include in bulk editing. Parameter $fields arrayAn array of fields to be exported Usage example The above script adds two more columns in your exported CSV file called _custom_field_name and _another_custom_field A more advanced example, with custom callback:

The post smart_seo_export_fields appeared first on Freddie Lore.

]]>
Description

Lets you export other custom fields to include in bulk editing.

Parameter

  • $fields array
    An array of fields to be exported

Usage example

The above script adds two more columns in your exported CSV file called _custom_field_name and _another_custom_field

A more advanced example, with custom callback:

The post smart_seo_export_fields appeared first on Freddie Lore.

]]>
smart_seo_export_desc https://labs.freddielore.com/help/documentation/filters/smart_seo_export_desc/ Sat, 11 Sep 2021 03:09:24 +0000 https://labs.freddielore.com/?post_type=docs&p=2112 Description The smart_seo_export_desc filter lets you manipulate SEO meta descriptions before finally outputting it to CSV during export. Parameters $desc stringThe meta description to be exported $post objectThe post object Usage example

The post smart_seo_export_desc appeared first on Freddie Lore.

]]>
Description

The smart_seo_export_desc filter lets you manipulate SEO meta descriptions before finally outputting it to CSV during export.

Parameters

  • $desc string
    The meta description to be exported
  • $post object
    The post object

Usage example

The post smart_seo_export_desc appeared first on Freddie Lore.

]]>
smart_seo_export_title https://labs.freddielore.com/help/documentation/filters/smart_seo_export_title/ Sat, 11 Sep 2021 03:08:52 +0000 https://labs.freddielore.com/?post_type=docs&p=2111 Description The smart_seo_export_title filter lets you manipulate SEO meta title before finally outputting it to CSV during export. Parameters $title stringThe SEO meta title to be exported $post objectThe post object Usage example

The post smart_seo_export_title appeared first on Freddie Lore.

]]>
Description

The smart_seo_export_title filter lets you manipulate SEO meta title before finally outputting it to CSV during export.

Parameters

  • $title string
    The SEO meta title to be exported
  • $post object
    The post object

Usage example

The post smart_seo_export_title appeared first on Freddie Lore.

]]>
smart_seo_export_size https://labs.freddielore.com/help/documentation/filters/smart_seo_export_size/ Sat, 11 Sep 2021 03:07:28 +0000 https://labs.freddielore.com/?post_type=docs&p=2110 Description By default, Smart SEO CSV Import/Export exports your data 50 rows at a time. You can overwrite this using smart_seo_export_size filter. Parameter $size integerThe amount of posts to process for each iteration Usage example

The post smart_seo_export_size appeared first on Freddie Lore.

]]>
Description

By default, Smart SEO CSV Import/Export exports your data 50 rows at a time. You can overwrite this using smart_seo_export_size filter.

Parameter

  • $size integer
    The amount of posts to process for each iteration

Usage example

The post smart_seo_export_size appeared first on Freddie Lore.

]]>