• Resolved Uriahs Victor

    (@uriahs-victor)


    Rather than each time having to check the option to disable the buttons on a post, I want to remove the action programmatically if is a certain post type.

    I cant use the Shariff settings to do this because my Custom posts use the “post” compatibility so the buttons still show on them even though they are not selected in the shariff settings.

    So could you please tell me the hook and action being used?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jan-Peter

    (@starguide)

    Hi TheLoneDeveloper,

    wouldn’t it be easier to do it the other way around? Instead of automatically adding it to the post type “post” trough the Shariff settings and trying to removing if again later, only add it programmatically to the type you want by using the shortcode.

    do_shortcode('[shariff]')

    Anyway: The hook being used to add it to the content is “the_content”.

    Cheers
    JP

    Thread Starter Uriahs Victor

    (@uriahs-victor)

    Thank you, there was an oversight on my part lol

    Best regards,
    Uriahs

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable share buttons programmatically’ is closed to new replies.