Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
206 views
in Plugins by
I'm trying to override read_post($fieldname) function in "qa-editor-basic.php" file to edit post content after each time they are edited or added. but I couldn't override it.

it simply made no deffirence. I even raised an error which only showed in plugins page, but not while I edited or added a question.

file qa-plugin.php:

    qa_register_plugin_module('module', 'qa-seo-links-admin.php', 'qa_seo_links_admin', 'SEO Links');
    qa_register_plugin_module('editor', 'qa-seolinks.php', 'qa_seo_links', 'SEO Links Editor');

file qa-seolinks.php:

class qa_link_optimizer {
function read_post($fieldname)
        {

$postinfo=qa_post_text($fieldname);

//apply changes to $postinfo
            return array(
                'format' => '',
                'content' => ,$postinfo
            );
        }
}
Q2A version: 1.5

1 Answer

0 votes
by
It sounds like you want to be using a filter module.
by
...