fb-instant-articles icon indicating copy to clipboard operation
fb-instant-articles copied to clipboard

Add option to disable IA on each post

Open paulschreiber opened this issue 6 years ago • 3 comments

This PR:

  • Adds an enabled/disabled toggle to the publish metabox
  • Adds a filter to use this metadata to exclude posts from the IA feed
  • Is adapted from the AMP-WP plugin's toggle (also GPLv2)

Fixes #773

paulschreiber avatar Jan 10 '19 22:01 paulschreiber

@timjacobi

paulschreiber avatar Jan 10 '19 22:01 paulschreiber

@diegoquinteiro

For (1), I'm not sure what you are requesting.

For (2), I'm guessing you want rescrape_article() called. Won't that happen already, since:

add_action( 'save_post', 'rescrape_article', 999, 2 );

…is set in facebook-instant-articles.php:584?

This will be faster if you fork off my branch and make the desired changes. I'm happy to give you write access to my fork if that's easier.

[Aside: rescrape_article is a pretty generic function name. Is this namespaced in a way I don't understand? If not, it would make more sense as a static method in some object.]

paulschreiber avatar Feb 09 '19 02:02 paulschreiber

When will this be merged? This is essential. Two years and no change?

nerra0pos avatar Oct 04 '21 13:10 nerra0pos

Hello @paulschreiber I've installed your plugin with composer installed and it's activated and setupped with page id, BUT I'm not seeing anything to enable or disable toggle for individual article? simply, it's almost same as the official, am I missing anything ?

Anyway to see a screenshot of new options after activating the plugin?

thanks in advance.

HRarsha avatar Oct 04 '22 06:10 HRarsha

@HRarsha I did not create the plugin, not do I maintain it.

paulschreiber avatar Oct 04 '22 12:10 paulschreiber