This file contains 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 | |
/** | |
* Add a "Background Class" setting to the row, advanced, CSS selectors section. | |
*/ | |
add_filter('fl_builder_register_settings_form', function (array $form, string $id): array { | |
if ('row' !== $id) { | |
return $form; | |
} |
This file contains 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
#!/usr/bin/env bash | |
# set -x # debug mode - shows all command output | |
# Get the full path to the wp program. | |
wp=$(which wp) | |
# Get the full path to the curl program | |
curl=$(which curl) |
This file contains 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
#!/usr/bin/env bash | |
# Focus window from 1st argument or | |
# executes command from 2nd argument | |
wmctrl -ia $(wmctrl -l | grep -i ${1} | awk '{print $1}') || ${2} & |