- Will install a plugin from a url:
wp plugin install https://github.com/gboone/simple-open-graph/archive/master.zip --activate - GitHub will make a different zip file for every branch, tag, or even commit, observe!
https://github.com/gboone/open-graph-control/archive/4c4611a9c35f269d5d5dab7b6a8fc6697e0a5341.zip - Thus
wp plugin install https://github.com/gboone/open-graph-control/archive/4c4611a9c35f269d5d5dab7b6a8fc6697e0a5341.zip --activatewill install and activate the plugin at that specific commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function maybe_flush_rewrite_rules($target) { | |
| $rules = get_option( 'rewrite_rules' ); | |
| if ( $rules[ $target . '/?$' ] != 'index.php?post_type=' . $target ) { | |
| flush_rewrite_rules( $hard = true ); | |
| } | |
| } |
NewerOlder