Skip to content

Instantly share code, notes, and snippets.

@zzfortezz
Last active November 9, 2018 08:21
Show Gist options
  • Save zzfortezz/8abd1b0aed587cc2c6f9db38bb0f1af7 to your computer and use it in GitHub Desktop.
Save zzfortezz/8abd1b0aed587cc2c6f9db38bb0f1af7 to your computer and use it in GitHub Desktop.
<?php
/**
* Retrieve the list of categories the widget belongs to.
*
* Used to determine where to display the widget in the editor.
*
* Note that currently Elementor supports only one category.
* When multiple categories passed, Elementor uses the first one.
*
* @since 1.0.0
*
* @access public
*
* @return array Widget categories.
*/
public function get_categories() {
return [ 'my-section' ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment