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 | |
| /* | |
| The filter that is in WPML core to allow for the modification of the admin icons occurs in wpml-post-status-display.class | |
| in get_status_html. Howevr this filter (wpml_icon_to_translation) only provides the actual icon file, not the full path, | |
| making it's replacement with icons stored elsewhere impossible. | |
| So for this code to work, you have to mod render_status_icon() as follows: | |
| private function render_status_icon( $link, $text, $img ) { |
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 | |
| /** | |
| * ACF Rule: adds Post Language type | |
| * | |
| * @author @theMikeD | |
| * | |
| * @param array $choices, all of the available rule types | |
| * @return array | |
| */ | |
| function cnmd_acf_rule_type_language( $choices ) { |
OlderNewer