Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Migration from 4.x to 5.0.6

    Hello, I worked around in this way:

    • exported in JSON in 4.x,
    • cleaned up the 4.x shortcode list,
    • upgraded to 5.x
    • clean up the 5.x shortcode list (deleting from trash),
    • converted the export in CSV using,
    • removed the 5.x and then installed it again,
    • imported the CSV via WP All Import plugin as explained on your site.

    Now I have another question, in function php I have this custom code:

    add_filter( 'do_shortcode_tag','pre_query_mssql_execute',10,3);
    function pre_query_mssql_execute($output, $tag, $attr)
        if (isset($attr['name']) && strpos($attr['name'], 'query_mssql') !== false)    {
            $a = get_option( 'shortcoder_data' );
            $shortcode_content = $a[$attr['name']]["content"];			
            $output = query_mssql_execute($shortcode_content,$attr);

    Now it is clear that get_option is the old way to retrieve the shortcode content.
    How I can retrieve $shortcode_content by post title and the custom type?
    Is filtering at do_shortcode_tag still valid?

    Thank you

Viewing 1 post (of 1 total)

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter