Search and replacing codes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2068031
    Jim Reyes
    Participant

    Please help me. I’m trying to replace this:

    [addthis tool=”addthis_inline_share_toolbox”]

    With this:

    [addtoany buttons=”facebook,messenger,x,email,print”]

    Unfortunately, the UD search and replacement was unsuccessful, and we couldn’t replace it.

    Here are the results:

    Search / replace database
    Search for: [addthis tool=\”addthis_inline_share_toolbox\”]
    Replace with: [addtoany buttons=\”facebook,messenger,x,email,print\”]

    Search and replacing table: wp_commentmeta: rows: 0
    Search and replacing table: wp_comments: rows: 0
    Search and replacing table: wp_et_social_stats: rows: 3
    Search and replacing table: wp_links: rows: 0
    Search and replacing table: wp_options: rows: 3767
    Search and replacing table: wp_plugin_jci_pro_templates: rows: 2
    Search and replacing table: wp_postmeta: rows: 47509
    Searching and replacing reached row: 5000
    Searching and replacing reached row: 10000
    Searching and replacing reached row: 15000
    Searching and replacing reached row: 20000
    Searching and replacing reached row: 25000
    Searching and replacing reached row: 30000
    Searching and replacing reached row: 35000
    Searching and replacing reached row: 40000
    Searching and replacing reached row: 45000
    Search and replacing table: wp_posts: rows: 3084
    Search and replacing table: wp_sti_links: rows: 1
    Search and replacing table: wp_term_relationships: rows: 3392
    Search and replacing table: wp_term_taxonomy: rows: 87
    Search and replacing table: wp_termmeta: rows: 1
    Search and replacing table: wp_terms: rows: 87
    Search and replacing table: wp_usermeta: rows: 897
    Search and replacing table: wp_users: rows: 47
    Search and replacing table: wp_wfblockediplog: rows: 372
    Search and replacing table: wp_wfblocks7: rows: 0
    Search and replacing table: wp_wfconfig: rows: 329
    Search and replacing table: wp_wfcrawlers: rows: 30
    Search and replacing table: wp_wffilechanges: rows: 0
    Search and replacing table: wp_wffilemods: rows: 9132
    Searching and replacing reached row: 5000
    Search and replacing table: wp_wfhits: rows: 1602
    Search and replacing table: wp_wfhoover: rows: 0
    Search and replacing table: wp_wfissues: rows: 1
    Search and replacing table: wp_wfknownfilelist: rows: 9132
    Searching and replacing reached row: 5000
    Search and replacing table: wp_wflivetraffichuman: rows: 0
    Search and replacing table: wp_wflocs: rows: 167
    Search and replacing table: wp_wflogins: rows: 1319
    Search and replacing table: wp_wfls_2fa_secrets: rows: 0
    Search and replacing table: wp_wfls_role_counts: rows: 0
    Search and replacing table: wp_wfls_settings: rows: 30
    Search and replacing table: wp_wfnotifications: rows: 80
    Search and replacing table: wp_wfpendingissues: rows: 0
    Search and replacing table: wp_wfreversecache: rows: 2
    Search and replacing table: wp_wfsecurityevents: rows: 55
    Search and replacing table: wp_wfsnipcache: rows: 0
    Search and replacing table: wp_wfstatus: rows: 2536
    Search and replacing table: wp_wftrafficrates: rows: 72
    Search and replacing table: wp_wfwafconfig: rows: 19
    Search and replacing table: wp_wfwaffailures: rows: 0
    Search and replacing table: wp_wonderplugin_gridgallery: rows: 24
    Search and replacing table: wp_wonderplugin_slider: rows: 1
    Search and replacing table: wp_yoast_indexable: rows: 1414
    Search and replacing table: wp_yoast_indexable_hierarchy: rows: 1408
    Search and replacing table: wp_yoast_migrations: rows: 26
    Search and replacing table: wp_yoast_primary_term: rows: 1117
    Search and replacing table: wp_yoast_prominent_words: rows: 7355
    Searching and replacing reached row: 5000
    Search and replacing table: wp_yoast_seo_links: rows: 4844
    Tables examined: 48
    Rows examined: 99944
    Changes made: 0
    SQL update commands run: 0
    Errors: 0
    Time taken (seconds): 2.492

    #2068032
    Jim Reyes
    Participant
    This reply has been marked as moderator-only.
    #2069388
    Vanessa
    Moderator

    Are you trying to search and replace button text.
    UpdraftPlus only does a search and replace on the DB, anything else for example the html or hardcoded links will not be changed.

    #2069771
    Adrian
    Participant

    Maybe better overwrite the old shortcode with something like this:

    add_shortcode(‘addthis’, function(){

    // TODO show note for admins or send notification of legacy shortcode usage…

    return do_shortcode(‘[addtoany buttons=”facebook,messenger,x,email,print”]’);
    });

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Search and replacing codes’ is closed to new replies.