• Resolved joelataylor-1

    (@joelataylor-1)


    I have a filter set up on wpseo_add_opengraph_additional_images and in this filter I’m adding an alternate image to the image_container.

    However, there doesn’t seem to be a way to remove an image from the container. There’s no method on the Image class that enables me to do that.

    How can I remove a meta image from the image_container?

    This is the problem method:
    $this->add_from_indexable( $context->indexable, $image_container );

    It’s adding the “Featured Image” as the meta image tag when I don’t want it to.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • We’re sorry, but unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on this or how to make changes to it.

    We also have a developer portal where you can find more information about filters and even check out some examples of how to use them.

    Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove image from meta’ is closed to new replies.