social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

491
active users

#wpcli

1 post1 participant0 posts today
skotperez<p><strong>Cómo saber con wp-cli en qué sitios de un WordPress Multisite está activo un plugin</strong></p> <p>Hay veces que se notifica una vulnerabilidad en un plugin de WordPress y es muy recomendable ponerlo en cuarentena: eliminarlo, o al menos desactivarlo, hasta que se solucione el problema. Cuando esto ocurre en una instalación Multisite de WordPress con decenas o centenas de sitios antes de poder desactivarlo o eliminarlo conviene saber en qué sitios está activo.</p> <p>Con <a href="https://voragine.net/etiquetas/wp-cli" rel="nofollow noopener noreferrer" target="_blank">wp-cli</a> y un loop de bash se puede realizar esta tarea automáticamente.</p> <p><a href="https://voragine.net/wordpress/wp-cli-wordpress-multisite-plugin-activo" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">voragine.net/wordpress/wp-cli-</span><span class="invisible">wordpress-multisite-plugin-activo</span></a></p>
David Bisset<p>Enabling AI-Powered <a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> Development with <a href="https://phpc.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> and the Model Context Protocol </p><p><a href="https://pascalbirchler.com/wordpress-model-context-protocol-mcp/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pascalbirchler.com/wordpress-m</span><span class="invisible">odel-context-protocol-mcp/</span></a> <a href="https://phpc.social/tags/MCP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MCP</span></a> <a href="https://phpc.social/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a></p>
Curtis McHale<p>wp search-replace on Gravity Forms tables<br>TIL, that if you run wp search-replace old@email.com new@email.com it won't actually change all instances in your database. In my case it specifically didn't change the Gravity Forms notification email to new@email.com.</p><p>When Gravity Forms creates it's tables using the {$wpdb-prefx}_rg_{table_name} format it doesn't also register those tables with the $wp<br><a href="https://sfndesign.ca/wp-search-replace-on-gravity-forms-tables/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sfndesign.ca/wp-search-replace</span><span class="invisible">-on-gravity-forms-tables/</span></a><br><a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/GravityForms" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GravityForms</span></a> <a href="https://mastodon.social/tags/WpCli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WpCli</span></a></p>
Shawn Hooper (he/him)<p>Almost a decade since I first learned about WP-CLI, and the </p><p>wp db import<br>wp db export<br>wp search-replace </p><p>commands still give me that sense of "oooo", "aaah", "wooow". Such time savers.</p><p><a href="https://fosstodon.org/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://fosstodon.org/tags/wpcli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wpcli</span></a></p>
Curtis McHale<p>Export WordPress Custom Post Data to CSV format<br>While doing a recent evaluation of a customer site we needed to export a bunch of data for each post type into a CSV. I needed:</p><p>Post Title</p><p>Author Display Name</p><p>Pretty URL</p><p>Published Date</p><p>Modified Date</p><p>While there are some plugins out there like export all urls it doesn't support custom post types that have their own custom taxonom<br><a href="https://sfndesign.ca/export-wordpress-custom-post-data-to-csv-format/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sfndesign.ca/export-wordpress-</span><span class="invisible">custom-post-data-to-csv-format/</span></a><br><a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/wordpress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wordpress</span></a> <a href="https://mastodon.social/tags/WpCli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WpCli</span></a></p>
David Bisset<p><a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> plugin that shorthands to <a href="https://phpc.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> which allows you to easily create database dumps and exclude sensitive data.</p><p><a href="https://github.com/Dan0sz/strip-db-dump" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Dan0sz/strip-db-dum</span><span class="invisible">p</span></a></p>
Roni Laukkarinen<p>Just released a fork of Advanced Media Offloader that allows you to upload WordPress media library to Cloudflare R2 (S3 Object Storage) via WP-CLI on command line<br><a href="https://github.com/ronilaukkarinen/advanced-media-offloader" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/ronilaukkarinen/adv</span><span class="invisible">anced-media-offloader</span></a></p><p><a href="https://mementomori.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://mementomori.social/tags/WordPressDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPressDevelopment</span></a> <a href="https://mementomori.social/tags/WordPressPlugins" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPressPlugins</span></a> <a href="https://mementomori.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> <a href="https://mementomori.social/tags/OpenSource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenSource</span></a> <a href="https://mementomori.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://mementomori.social/tags/S3" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>S3</span></a> <a href="https://mementomori.social/tags/Cloudflare" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Cloudflare</span></a> <a href="https://mementomori.social/tags/CloudflareR2" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CloudflareR2</span></a></p>
David Bisset<p>The Complete Guide to Installing WP-CLI <a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a></p><p><a href="https://deliciousbrains.com/complete-guide-to-installing-wp-cli/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">deliciousbrains.com/complete-g</span><span class="invisible">uide-to-installing-wp-cli/</span></a> <a href="https://phpc.social/tags/wpcli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wpcli</span></a></p>
Liam Dempsey<p>On days when I struggle to type accurately, the value of <a href="https://mstdn.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> is greatly diminished. A spelling-focused tool cannot accommodate as much user error as I throw at it on some of my off days. 🤪 </p><p><a href="https://mstdn.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a></p>
David Bisset<p>Website security checks – WP-CLI for site owners and administrators <a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://phpc.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a></p><p><a href="https://developer.wordpress.org/news/2024/09/09/website-security-checks-wp-cli-for-site-owners-and-administrators/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.wordpress.org/news/2</span><span class="invisible">024/09/09/website-security-checks-wp-cli-for-site-owners-and-administrators/</span></a></p>
Liam Dempsey<p>How I search for the how to update the admin email address in <a href="https://mstdn.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> in <a href="https://mstdn.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a>. </p><p>Yes, I know, I should just bookmark <span class="h-card" translate="no"><a href="https://social.devries.frl/@remkus" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>remkus</span></a></span>'s blog post.</p>
Sal Ferrarello<p>I created a blog post based on this thread about finding <a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> posts that contain a given string using <a href="https://phpc.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> </p><p>The fediverse is great but I'm more likely to find content on my own blog that in an old Mastodon post 😀 </p><p><a href="https://salferrarello.com/wp-cli-find-in-post/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salferrarello.com/wp-cli-find-</span><span class="invisible">in-post/</span></a></p>
Sal Ferrarello<p><span class="h-card" translate="no"><a href="https://mstdn.social/@liamdempsey" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>liamdempsey</span></a></span> Though poorly documented, you can use the --s argument with<br>wp post list<br>to search (instead of wp db search)</p><p>e.g. If I wanted to find all the posts with kazoo</p><p>wp post list --s='kazoo'</p><p>You can also change the format of the output with --format</p><p>wp post list --s='kazoo' --format=csv</p><p>And finally you can dump those results into a file with<br>&gt; myresults.csv<br>that you can download and then delete from the server.</p><p>wp post list --s='kazoo' --format=csv &gt; myresults.csv</p><p><a href="https://phpc.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> <a href="https://phpc.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a></p>
Liam Dempsey<p>Using <a href="https://mstdn.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a>, I am learning how to use wp db search, but what I cannot figure out is how to export the search results for review outside of the terminal.</p><p>Any ideas?</p><p><a href="https://mstdn.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a></p>
Liam Dempsey<p>For those creating and maintaining <a href="https://mstdn.social/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> sites with <a href="https://mstdn.social/tags/Elementor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Elementor</span></a>, here's a link to Elementor's documentation on using <a href="https://mstdn.social/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> with Elementor.</p><p><a href="https://developers.elementor.com/docs/cli/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developers.elementor.com/docs/</span><span class="invisible">cli/</span></a></p>
Diana Thompson :wordpress:<p>The Accessibility Checker plugin for WordPress now has WP-CLI support to get stats and delete stats. <a href="https://equalizedigital.com/accessibility-checker/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">equalizedigital.com/accessibil</span><span class="invisible">ity-checker/</span></a> <a href="https://fosstodon.org/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://fosstodon.org/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a> <a href="https://fosstodon.org/tags/Accessibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Accessibility</span></a> <a href="https://fosstodon.org/tags/a11y" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>a11y</span></a></p>
Ross McKay<p>WordPress plugin devs: if you're bundling in the new .l10n.php translation files, note that both GlotPress 4.0.1 (the plugin) and wp cli 2.10.0 output broken files. Any untranslated strings will be set to '' (empty string) and thus will fail to fall back to en_US.</p><p>wp cli nightly has a fix for this. See comment and replies on the WP Make blog post:</p><p><a href="https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5-performant-translations/#comment-46366" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">make.wordpress.org/core/2024/0</span><span class="invisible">2/27/i18n-improvements-6-5-performant-translations/#comment-46366</span></a></p><p><a href="https://fosstodon.org/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://fosstodon.org/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a></p>
Ross Wintle<p>Nice. <span class="h-card" translate="no"><a href="https://mas.to/@tmeister" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>tmeister</span></a></span> has made a new and developing unofficial docs site for <a href="https://fosstodon.org/tags/WPCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WPCLI</span></a>.</p><p><a href="https://wpcli.dev/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wpcli.dev/</span><span class="invisible"></span></a></p><p>He says:</p><p>“What I want is to create more deep content around it… Tutorials on specific commands, how to migrate sites, maintenance routines for comments, users, security, extends the cli with custom commands, etc.”</p><p><a href="https://fosstodon.org/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a></p>
skotperez<p><a href="https://voragine.net/wordpress/cerrar-comentarios-posts-wp-cli" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">voragine.net/wordpress/cerrar-</span><span class="invisible">comentarios-posts-wp-cli</span></a></p>
Curtis McHale<p>LocalWP and Homebrew Conflicts<br>Like an idiot while I was going to do a "quick" bit of work to get ahead for next week on Friday. First I decided it was time to update Homebrew before I really got into diagnosing a problem for a client. Of course mayhem ensued with the wpcli commands no longer working with LocalWP after I ran brew update &amp;&amp; brew upgrade.</p><p>There were two main errors to search<br><a href="https://sfndesign.ca/localwp-and-homebrew-conflicts/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sfndesign.ca/localwp-and-homeb</span><span class="invisible">rew-conflicts/</span></a><br><a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/Homebrew" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Homebrew</span></a> <a href="https://mastodon.social/tags/nixshell" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixshell</span></a> <a href="https://mastodon.social/tags/wordpress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wordpress</span></a> <a href="https://mastodon.social/tags/WpCli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WpCli</span></a></p>