• Resolved delirium6

    (@delirium6)


    Hi @pepe,

    There is a way to hide or remove the link to the media author page, when the credit is automatically assigned to it ?

    In my example bellow, the author “b b” is the post author, and there is a link to the author page, but i don’t want it.

    See my screenshot

    Regards

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

    (@pputzer)

    Hi @delirium6,

    there is currently no setting for this, but you could use the media_credit_wrapper filter hook to filter the markup for all media credits and remove the link to the author page via a regular expression.

    /**
     * Filters the wrapped media credit markup.
     *
     * @param string $markup             The credit wrapped in additional markup.
     * @param string $credit             The credit (including optional link).
     * @param bool   $include_schema_org A flag indicating whether schema.org markup should be included.
     */
     return \apply_filters( 'media_credit_wrapper', $markup, $credit, $include_schema_org );
    Plugin Author pepe

    (@pputzer)

    Hi @delirium6, I’ve added a GitHub issue to track this feature request. Let’s continue the discussion there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Credit author link’ is closed to new replies.