• Resolved Brecht

    (@brechtvds)


    Hi there,

    First of all: great plugin!

    I was wondering if it’s possible to introduce some filter hooks? That would allow advanced users to alter parts of the plugin functionality without messing with the plugin files directly.
    For example. At moment I’ve changed line 233 in your main php file to this:

    return do_shortcode( make_clickable($html) );

    Which allows me to use shortcodes in my Google Sheet and have them executed. If that line would like this:

    return apply_filters( 'gdoc_html', make_clickable($html) );

    I could just add a filter and wouldn’t have to edit your plugin files and lose changes whenever I update the plugin.

    There are probably a few other locations where this could be useful.

    Kind regards,
    Brecht

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

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

The topic ‘Using filter hooks’ is closed to new replies.