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
#!/bin/bash | |
# ================================================ | |
# | |
# Author : Rajon Ahmed | |
# Role : Entrepreneur, Developer, Civil Engineer | |
# Email : public@rajonahmed.com | |
# Website : rajonahmed.com | |
# | |
# ================================================ |
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
/** | |
* Generate a unique random ID based on configurable parameters. | |
* This function allows you to generate strings with different character sets, length, delimiters, and part-length options. | |
* | |
* @param array $args { | |
* Optional. An array of arguments to customize the generated ID. | |
* | |
* @type int $length Length of the generated string. Default is 16. | |
* @type string $charset Charset to use for generating the string. | |
* Available options: |
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
// Shortcode 1: [ia_role id="anything" type="mapped" account="users_of_this_role" main="primary_role" target="role_a,role_b" map="role_a:role_1,role_2,role_3|role_b:role_4,role_5,role_6"] | |
// Shortcode 2: [ia_role id="anything" type="unmapped" account="users_of_this_role" main="primary_role" target="role_x,role_y,role_z"] | |
function backendops_ia_role_form($atts) { | |
// Default attributes | |
$atts = shortcode_atts( | |
array( | |
'id' => '', | |
'su' => 'administrator', | |
'type' => '', | |
'account' => '', |
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
{ | |
"post_titles": [ | |
"Exploring the Depths of Human Consciousness", | |
"The Future of AI in Creative Arts", | |
"Unlocking the Mysteries of Quantum Computing", | |
"How Space Exploration Influences Modern Technology", | |
"The Intersection of Philosophy and Science: A Deep Dive into Their Synergy", | |
"Imagining a World Without Borders", | |
"Redefining Success in the 21st Century", | |
"The Impact of Digital Media on Traditional Art Forms", |
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
function backendops_ia_social_image( $request, $action_handler ) { | |
// Get $post_id from the post_id field in the request | |
$post_id = ! empty( $request['post_id'] ) ? $request['post_id'] : false; | |
// Get the value of the option 'news_social_image_logo' and convert ID to URL | |
$news_social_image_logo_id = get_option( 'news_social_image_logo' ); | |
$news_social_image_logo = $news_social_image_logo_id ? wp_get_attachment_url( $news_social_image_logo_id ) : ''; | |
// Initialize variables |
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
jQuery(document).ready(function($) { | |
// Initialize Select2 with the generated optgroups and options | |
$('#action_option').select2({ | |
placeholder: 'Action *', | |
searchInputPlaceholder: 'Search Action...', | |
selectOnClose: false, | |
closeOnSelect: 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
{ | |
"countries": [ | |
{ | |
"country_code": "AF", | |
"country_name": "Afghanistan" | |
}, | |
{ | |
"country_code": "AX", | |
"country_name": "Åland Islands" | |
}, |
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
{ | |
"territories": [ | |
{ | |
"territory_name": "World" | |
} | |
], | |
"continents": [ | |
{ | |
"continent_name": "Asia" | |
}, |
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
{ | |
"countries": [ | |
{ | |
"country_code": "AF", | |
"country_name": "Afghanistan" | |
}, | |
{ | |
"country_code": "AX", | |
"country_name": "Åland Islands" | |
}, |
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
/* | |
* Project: Password Visibility Toggle | |
* Description: It works on any form. It's flexible and you can add more fields and cases as per your need. It won't throw any error if the field is not present on the webpage. | |
* Author: Rajon Ahmed | |
* Author URI: rajonahmed.me | |
* Version: 0.0.1 | |
* License: GPL v3.0 | |
* License URL: https://www.gnu.org/licenses/gpl-3.0.en.html | |
*/ |
NewerOlder