Git Product home page Git Product logo

Comments (5)

diggy avatar diggy commented on June 7, 2024

See https://github.com/diggy/polylang-cli/blob/master/src/Commands/BaseCommand.php#L12

Also note https://github.com/diggy/polylang-cli/blob/master/src/Commands/Post.php#L225

Why would mentioning this in the polylang-cli documentation be useful or relevant?

from polylang-cli.

szepeviktor avatar szepeviktor commented on June 7, 2024

Projects usually have an "Alternatives" section in the readme.

from polylang-cli.

diggy avatar diggy commented on June 7, 2024

@szepeviktor I've been thinking about this, and I'm not convinced this is a viable, alternative solution. Defining the constants is simply not enough; wp post list might work, but for other pll commands I was hoping simply passing args and assoc args to the core command counterparts would suffice, but it does not, take a look at these commands I just implemented:

from polylang-cli.

szepeviktor avatar szepeviktor commented on June 7, 2024

Ok-Ok.
Finding those constants to make wp post * work took me a long time. I thought it worth sharing.

from polylang-cli.

szepeviktor avatar szepeviktor commented on June 7, 2024

Instead of alternative solution I would call it Viktor's hack:
https://github.com/szepeviktor/wordpress-plugin-construction/tree/master/wp-cli-commands/wp-cli-polylang-enabler-hack

from polylang-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.