asp_post_permalink_before_tokenize

This filter runs just before the attachment file contents are processed and cleared from HTML etc.., before it is passed to the tokenization process.

apply_filters('asp_post_permalink_before_tokenize', $permalink, $post);

Parameters

  • $permalink(string) - the post content

  • $post(WP_Post) - post type object

add_filter( 'asp_post_permalink_before_tokenize', 'asp_change_post_field_index', 10, 2 );
function asp_change_post_field_index( $permalink, $post ) {
    return "my/custom/link/";
}

Last updated

Copyright Ernest Marcinko