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 | |
| abstract class WordPressSettings { | |
| /** | |
| * ID of the settings | |
| * @var string | |
| */ | |
| public $settings_id = ''; | |
| /** | |
| * Tabs for the settings page |
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 | |
| class IBenic_WordPress_Metabox extends WordPressSettings { | |
| protected $title = ''; | |
| protected $slug = ''; | |
| protected $post_types = array(); |
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 | |
| add_filter( 'template_include', 'ibenic_checkout_template', 99 ); | |
| function ibenic_checkout_template( $template ) { | |
| if ( is_page( 'checkout' ) ) { | |
| $new_template = locate_template( array( 'checkout.php' ) ); | |
| if ( '' != $new_template ) { | |
| return $new_template ; |
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 | |
| add_action( 'admin_enqueue_scripts', 'books_enqueue_scripts' ); | |
| function books_enqueue_scripts( $hook ){ | |
| $hook_scripts = false; | |
| if( $hook_suffix == "post-new.php" && isset( $_GET["post_type"] ) && $_GET["post_type"] == "books" ){ | |
| $hook_scripts = true; | |
| } |
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 ibenic_get_all_zones() { | |
| if( class_exists( 'WC_Shipping_Zones' ) ) { | |
| $all_zones = WC_Shipping_Zones::get_zones(); | |
| return $all_zones; | |
| } | |
| return false; | |
| } |
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 | |
| // ... | |
| public function load_dependencies(){ | |
| /** | |
| * Base functions | |
| */ |
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 | |
| array( | |
| // Storing ads for top position | |
| 'top' => array( | |
| 0 => array( | |
| //Ads parameters | |
| ) | |
| ), |
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 | |
| //swa-functions.php | |
| /** | |
| * Click Ad registration | |
| * @return void | |
| */ | |
| function swa_ad_click() { | |
| $id = 0; |
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
| <?pbp | |
| class Simple_WP_Ads { | |
| // ... | |
| public function load_dependencies(){ | |
| // ... | |
| require_once SWA_ROOT .'inc/swa-statuses.php'; |
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 woo_payment_gateway() { | |
| class Woo_PayPal_Gateway extends WC_Payment_Gateway { | |
| } | |
| } |