Codeinwp / feedzy-rss-feeds

FEEDZY RSS Feeds is an easy-to-use plugin giving you RSS aggregator and autoblogging functionality. Bring the best RSS feeds to your site.
GNU General Public License v2.0
81 stars 26 forks source link

Allow chained actions for `[#item_title]` #913

Closed Soare-Robert-Daniel closed 5 months ago

Soare-Robert-Daniel commented 8 months ago

Summary

Added the option to have chained actions for Post Title field in the Map Content on the tag [#item_title]. ( the process is similar to the one from post content)

Changes:

If the user had some tags already in the title field, they will appear normal since they are saved like [#item_title], [#item_source].

The workflow:

  1. The import UI encodes all the chained actions data inside the Tagify action. (import-metabox-edit.js)
  2. On the import process, the field data is decoded and extracted from the tagify structure. (feedzy-rss-feeds-import.php)
  3. The structure is a serialized array with all the actions. The data field will be a mix of tags and normal text (if present).
  4. The tags are extracted from the entire field data. Then they are deserialized and processed.
  5. The result of the process is replaced in the field data (swaps the result with serialized data in the string).

[!NOTE] I did some code refactoring on the function and variable names so that the above process is reflected in their names.

[!NOTE] I removed the code from PR since they conflict. This version is more advance.

Will affect visual aspect of the product

NO

Screenshots

https://github.com/Codeinwp/feedzy-rss-feeds/assets/17597852/28367d6e-9b96-4e92-8e3e-09400780531f

Test instructions

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/645

pirate-bot commented 8 months ago

Plugin build for b987a2b79e124e52512b251c4092692be42e4646 is ready :bellhop_bell:!

irinelenache commented 6 months ago

@Soare-Robert-Daniel

Can be checked here:

 Admin area URL: https://inexpensivegiraffe.s2-tastewp.com/wp-admin 
 Username: irinel 
 Password: 1vT9Vr7SHKQ 
pirate-bot commented 5 months ago

:tada: This PR is included in version 4.4.9 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: