Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #4605
      kattagami
      Member

      Hello,

      I try to get a Piklist setting field value in a shell script using WP-CLI
      Do you think it’s possible?

      I tried with different commands without success:

      wp option get my_option_id
      wp option list –fields=’my_option_id’

      May be we can use the WP-CLI db query command but in that case what would be the correct SQL SELECT query?

      wp db query “SELECT … FROM …”?

      Thanks for help

    • #4608
      kattagami
      Member

      I have it 🙂

      I get my setting field in a php file and then call this file with the WP-CLI command “wp eval-file file.php”

      [Resolved]

Viewing 1 reply thread
  • The topic ‘How to get a Piklist field from a setting page with WP-CLI?’ is closed to new replies.